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 16:05:37 GMT 2005


On Fri, Dec 09, 2005 at 04:26:54PM +0100, Mark Rosenstand wrote:
> 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.
> > 
> > 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?
> 
> IIRC it doesn't matter if you commit or not, if you rm a file you can't
> get it back easily. We had a talk about it in #bzr a while back. I
> think we came to the conclusion that it was a bug, but I don't know if
> it has been fixed since 0.6.

It seems to have been fixed. If you haven't committed yet, you can
revert a deleted file. And even if you have committed, you can, as I
was told, uncommit, and then revert it to get it back.

Regards,

Bjorn




More information about the bazaar mailing list