In Mercurial, what is the command to say "make all my files as of 2 months ago! (Revision 328)" or "the current version"?
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.
精彩评论