Lost the work of a month? :(

John Arbash Meinel john at arbash-meinel.com
Thu Aug 28 15:53:04 BST 2008


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

James Westby wrote:
> On Thu, 2008-08-28 at 13:47 +0200, Juan Pedro Bolivar Puente wrote:
>> Hi,
>>
>> I am working on a (solo) project and I used bind so commits are
>> automatically commited to the project hosting.
>>
>> This summer I have been working away so I have done many commits using
>> --local. Today, I decided to commit those changes to the main branch, so
>> I did:
>>
>> $ bzr update.
>>
>> As there were new changes not committed locally a merge was done.
>> Without reading the docs, I tried to undo that step by doing
>>
>> $ bzr revert
>>
>> What happened was that all my changes commited using --local
>> disappeared, which means that I have lost my work of weeks...
>>
>> Please, is there any way to reload my local commits? I've lost my work
>> of a month, I'm getting mad...
> 
> Don't panic, they are not gone, just hidden. The easiest way to
> get them back is to use the "heads" command from bzrtools.
> 
>   bzr heads --dead-only
>   
> should list the tip revision that you lost, something
> like
> 
>   HEAD: revision-id: \
>    jw+debian at jameswestby.net-20080125165417-9ddg56njwv6venrq (dead)
> 
> with the details underneath.
> 
> You can then run "bzr pull --overwrite -rrevid:foo .", where foo
> is the revision-id from the above, to get back to where you were
> before. You could "bzr merge" it instead if you wanted to get
> back to the point after the "bzr update".
> 
> Thanks,
> 
> James

Just to mention,

 bzr pull . --overwrite -r revid:foo

It is usually best to suggest the "." early on so that people don't miss it.
Putting it at the end tends to have people think it is just the
end-of-sentence punctuation.

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFItrvQJdeBCYSNAAMRAqz9AKCGQhQHSTsi3mT04FtcRrIbudSNbACghNcD
0gBR9P8k6iXcgDwnAg6YCqs=
=fPpn
-----END PGP SIGNATURE-----



More information about the bazaar mailing list