List of uncommits

John Arbash Meinel john at arbash-meinel.com
Mon May 7 18:44:28 UTC 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 5/7/2012 12:15 PM, Chris McCormick wrote:
> On 05/07/2012 06:15 PM, Alexander Belchenko wrote:
>> Chris McCormick пишет:
>>> Through a series of deeply foolish command line invocations I
>>> managed to uncommit on a bound branch and then pressed ^C just
>>> after it had finished uncommitting on the remote bound
>>> repository successfully. I then pulled the uncommit from the
>>> remote which worked fine. Basically I now want to re-commit but
>>> because I ^C'ed out I don't know the revision id that I should
>>> recommit with. How can I find this out? Any way to list the
>>> uncommitted revisions?
>> 
>> bzr heads --dead
> 
> Brilliant! Thank you so much.
> 
> I think it would be appropriate if that was written on this page
> somewhere: 
> http://doc.bazaar.canonical.com/beta/en/user-guide/undoing_mistakes.html
>
>  Cheers,
> 
> Chris.
> 

Note that when you do 'bzr uncommit' it prints out the revision id of
the tip that you just moved from, and logs that revision into .bzr.log
as well. That is the line:

...

You can restore the old tip by running:
  bzr pull . -r
revid:john at arbash-meinel.com-20120507184047-ziouqtmq84smi7j6

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk+oGAwACgkQJdeBCYSNAAN1YQCZAbT45KJOSTHzA2A9NPr47kHE
lJgAoLn5BcPdReEaqnPkBa8itaV85EW2
=oPfp
-----END PGP SIGNATURE-----



More information about the bazaar mailing list