开发者

In Mercurial, what is the command to say "make all my files as of 2 months ago! (Revision 328)" or "the current version"?

开发者 https://www.devze.com 2023-01-03 04:02 出处:网络
In Mercurial, what i开发者_开发百科s the command to say 1) make all my files as of two months ago (say, April 16, 6:03pm) (Revision 328 as seen from the hg log)

In Mercurial, what i开发者_开发百科s the command to say

1) make all my files as of two months ago (say, April 16, 6:03pm) (Revision 328 as seen from the hg log)

2) or, make my files back to the most current repository version?


hg update --rev 328 will make you current working copy look like it did at revision 328.

So long as you don't check in anything hg update -r tip will take to back to most current revision.

If you do make changes you'll now have to deal with two branches. The old current head and the head you just created when you checked in at the old revision.

0

精彩评论

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

关注公众号