开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜