开发者

In Mercurial, "hg rename" works but the history doesn't follow the file?

I remembe开发者_运维知识库r in SVN, I can rename a file from foo.txt to foo2.txt and all the history will follow (log file of foo2.txt will show all history of foo.txt as well). But on Mercurial, seems like that's not the case. When a hg rename is done, then hg log foo2.txt will not show any previous history of foo.txt? Is there a way around it?


Use hg log --follow foo2.txt or hg log -f foo2.txt (short form) to show you the entire history of the file before the hg rename

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜