I must have missed something VERY important...

Tony Mechelynck antoine.mechelynck at gmail.com
Sat Aug 11 20:21:23 UTC 2012


On 09/08/12 01:46, schwack wrote:
> I thought the whole idea behind the concept of a repository was to be
> able to undo changes that don't work out?
> I have a project, no one works on but me. I have made several changes
> that ultimately did not work out. Now, I simply want to go back to the
> way things were about 5 revisions ago. I mean COMPLETELY. It was a great
> experiment but it did not work out. In the course of things MANY files
> got changed, and there are about 5 commits between me and happiness.
> Was I wrong in thinking that I could simply return to revision 156 if I
> wanted? Revert does not seem to help. I just want everything back to
> where it was.
> It seems to me that is the whole idea? I should be able to right click
> any revision and say take me to here please......
> How to I 'revert' EVERYTHING to be just like it was 2 weeks ago?
>
Yes, as Wurzel said in another thread, to go back to how all the files 
were at revision 156, it's

	hg update -r 156

As simple as that. If then you make changes and commit them, there will 
be two children to revision 156: rev. 157 which you already have, and a 
new revision, maybe rev. 162, i.e., one more than the highest rev# 
already existing. So if you decide that those changes you undid weren't 
all as bad as that, you can go back to any of them too.


Best regards,
Tony.
-- 
There are no games on this system.




More information about the Mercurial mailing list