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

Wouter van Heyst larstiq at larstiq.dyndns.org
Fri Dec 9 15:20:48 GMT 2005


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

> 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.

Wouter van Heyst




More information about the bazaar mailing list