bzr assumes I want to remove the file if I delete it from the filesystem

Bjorn Tillenius bjorn.tillenius at gmail.com
Fri Dec 9 15:30:22 GMT 2005


On Fri, Dec 09, 2005 at 04:20:48PM +0100, Wouter van Heyst wrote:
> On Fri, Dec 09, 2005 at 05:13:31PM +0200, Bjorn Tillenius wrote:
> > Hi,
> > 
> > I got surprised about how bzr worked, and I'm not sure it's a bug or
> > not, I would say that it is, though.
> 
> It is currently filed as https://launchpad.net/products/bzr/+bug/5158

Ah, cool.


> > If foo is a versioned filed, and I do 'rm foo; bzr commit'. Should bzr
> > really remove the file from the repository then? It seems quite odd to
> > me, especially since I temporarily removed a file from the file system,
> > and forgot to 'bzr revert' it before I committed... What's the best way
> > of restoring the file with all its history retained?
> 
> Sometimes I find the behaviour useful, but I do think it can do more
> harm than good. With your current situation, I would try an uncommit,
> and revert that file, then commit again.

And how do I do an uncommit?

Regards,

Bjorn




More information about the bazaar mailing list