TortoiseSVN:移动文件不保留历史记录

发布于 2024-08-19 09:43:30 字数 215 浏览 3 评论 0原文

我试图将文件移动到 TortoiseSVN 存储库内的另一个文件夹,但修订历史记录未保留。我尝试使用存储库浏览器移动文件(右键单击拖动文件并选择“将项目移动到此处”)以及工作文件夹中的文件(右键单击拖动,选择“SVN 将版本化文件移动到此处”,然后提交父文件夹)。在这两种情况下,历史都不会被保留。我已经阅读了 TortoiseSVN 手册以及人们的其他一些帖子,并且我确信这些就是做到这一点的方法。我错过了什么吗?

I am attempting to move a file to another folder inside a TortoiseSVN repository, and the revision history is not being preserved. I have tried moving the files using the Repo-browser (right-click drag the files and select "Move items to here") as well in the working folder (right-click drag, select "SVN Move versioned files here," and commit the parent folder). In both cases the history is not preserved. I have read the TortoiseSVN manual as well as some other posts from people and am postitive those are the ways to do it. Am I missing something?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

时光病人 2024-08-26 09:43:30

Subversion 和 TortoiseSVN 绝对会保留文件历史记录。 (这是 SVN 的基本方面之一。)

两个关键点(您似乎已经意识到了):

  • 您必须使用 SVN 移动/复制/重命名命令。否则,SVN 将无法知道它们是同一个文件。

  • 查看移动/复制/重命名日志时,必须确保“复制/重命名时停止”选项未选中。否则,日志只会返回到目前为止。

现在,请记住,您需要查看日志以查找实际移动/复制的内容。查看复制的文件的日志。不要查看从中复制它的目录的日志,或者将其复制到的目录的日志。

Subversion and TortoiseSVN absolutely do preserve the file history. (It is one of the fundamental aspects of SVN.)

Two key points (which you already seem to be aware of):

  • You have to use the SVN move/copy/rename commands. Otherwise, SVN won't be able to know they are the same file.

  • When looking at the log for moved/copied/renamed, you have to make sure the "Stop on copy/rename" option is unchecked. Otherwise, the log will only go back so far.

Now, keep in mind that you need to be looking at the log for something that actually was moved/copied. Look at the log of the file that was copied. Don't look at the log of the directory you copied it from, or the directory you copied it to.

倾其所爱 2024-08-26 09:43:30

包含答案的页面已从 TortoiseSVN 帮助文档中删除:
http://tortoisesvn.net/docs/nightly/TortoiseSVN_en/tsvn-dug-rename.html< /a>>

但仍然存在于 Google 缓存中:

http://webcache.googleusercontent.com/search?q=cache:x7UeADC8BpwJ:tortoisesvn.net/docs/nightly/TortoiseSVN_en/tsvn-dug-rename .html+&cd=4&hl=en&ct=clnk&gl=us

如果您想在工作副本内移动文件,也许移动到不同的子文件夹,请使用鼠标右键拖放处理程序:

选择要移动的文件或目录

右键将它们拖到工作副本内的新位置

松开鼠标右键

在弹出菜单中选择“上下文菜单”→“SVN 将版本控制文件移至此处”

在此处输入图像描述

The page with the answer has been removed from TortoiseSVN help docs:
http://tortoisesvn.net/docs/nightly/TortoiseSVN_en/tsvn-dug-rename.html>

But still exists in Google cache:

http://webcache.googleusercontent.com/search?q=cache:x7UeADC8BpwJ:tortoisesvn.net/docs/nightly/TortoiseSVN_en/tsvn-dug-rename.html+&cd=4&hl=en&ct=clnk&gl=us

If you want to move files around inside your working copy, perhaps to a different sub-folder, use the right mouse drag-and-drop handler:

select the files or directories you want to move

right drag them to the new location inside the working copy

release the right mouse button

in the popup menu select Context Menu → SVN Move versioned files here

enter image description here

-小熊_ 2024-08-26 09:43:30

我发现,在您执行 SVN Move 版本化文件后,只要选择每个文件,就可以访问历史记录。如果您尝试查看该文件夹的日志,它只会显示副本。

I found out that after you do the SVN Move versioned files here you can get to the history as long as you select each file. If you try to view the log of the folder it will only show you the copy.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文