开发者

Why does rename cause a file add rather than file changed?

开发者 https://www.devze.com 2022-12-15 17:38 出处:网络
I accidentally added and committed a file with the wrong name.No problem.Tortoise has a rename command.The command deleted the original and added the new file.

I accidentally added and committed a file with the wrong name. No problem. Tortoise has a rename command. The command deleted the original and added the new file.

Is 开发者_运维百科this just a short cut for copy, delete, and add? Does this command do anything else behind the scenes?


apart from just being a short-cut, it also links the history to the new file so you can still see previous revisions.


Yes, there is no such thing as rename in svn - its just the operations you described above.

Interestingly, there isn't even any such thing as move - see http://svnbook.red-bean.com/en/1.0/re18.html

Edit: you shouldn't have any problems since you committed first, but this seems to be on topic anyway: SVN rename - pitfalls to avoid

0

精彩评论

暂无评论...
验证码 换一张
取 消