bzr revert deletes added files

Aaron Bentley aaron.bentley at utoronto.ca
Sun Aug 28 20:36:52 BST 2005


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

Bjorn Tillenius wrote:
> I accidentally added a file to my bzr archive. To "un-add" it I used
> bzr revert, which seemed to work.

To un-add a file without deleting it, use 'bzr remove'.

 But then I discovered that the file
> was not only deleted from the archive, but also from the file system:

> Which was not what I expected. Is there any way of getting the files
> back?

When you modify a file and then revert the changes, a backup is kept,
with the name foo~.  Unfortunately, it looks like that doesn't happen
when files are deleted.  We'll need to address this.

One option is to have 'revert' simply un-add those files.  Another is to
keep backups.

My favourite, though, is to have revert produce a changeset that can be
used to reproduce the tree state, instead of scattering backup files all
over the working tree.

Can we look at getting changesets into the core soon?

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

iD8DBQFDEg2w0F+nu1YWqI0RAt4hAJ97KmOio8dIt609Qqmf8VnSnmUd/ACdECZh
ozc/zwvrpYn3w9g2ZCuhiV0=
=aBFU
-----END PGP SIGNATURE-----




More information about the bazaar mailing list