Accidental pull

Matt Mackall mpm at selenic.com
Sat Jul 2 22:59:15 UTC 2005


On Sat, Jul 02, 2005 at 06:51:51PM -0400, Andrew Thompson wrote:
> Andreas Gruenbacher wrote:
> >Hello,
> >
> >I accidentally pulled two unrelated repositories into the same local copy, 
> >so I ended up with something like:
> >
> >	$ hg -q heads
> >	32857:9ba697cbfba017ab821b02a423836f3ec3f8fe50
> >	568:e8fd41110dce25ee4b389c891bf7dbc0a90c1f62
> >
> >is there a way to purge one of the trees without losing the other?
> >
> >Thanks,
> 
> First back up the directory just as it stands!
> 
> How long ago (in revisions)?
> 
> You can undo a transaction by doing hg undo, but I haven't done it 
> enough to know if that will undo one commit or one command. In short, I 
> don't know if you would have to undo 1 time, 568 times, or 32857 times. :)

It will undo the last backend transaction, which is eithe a pull or
commit. If the pull was 30000 changesets, it will pop 30000
changesets. But you can only undo once.

-- 
Mathematics is the supreme nostalgia of our time.



More information about the Mercurial mailing list