TortoiseSVN:移动文件不保留历史记录
我试图将文件移动到 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
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.
包含答案的页面已从 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
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
我发现,在您执行 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.