[Bug 87548] Re: bzr add and revert on symlink deletes symlink

Kent Gibson warthog618 at gmail.com
Fri Jul 13 10:23:30 BST 2007


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



Martin Pool wrote:
> This is the designed behaviour: revert restores your tree to the state
> it previously had, including removing newly added files.
>
If this is designed behaviour, then why is it different for normal
files and symlinks?
i.e if I do this

$ echo > a
$ bzr add a
added a
$ bzr revert a
- -   a        

then a will still be there.

Yet
$ echo > a
$ ln -s a b
$ bzr add b
$ bzr revert b
- -D  b@

removes b.

> I'll add a message to the help message for revert explaining that it
> will do this.
>
I'm interested to see what it will say.
> It might be reasonable to have an option for revert called say --keep-
> added that disables this behaviour -- please talk about this on the list
> if you want it.
>
All I want is some command that will undo an accidental add.
For normal files that appears to be revert.
For symlinks ???


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

iD8DBQFGl0SRgoxTFTi1P8QRAhVOAJ9d5JEYxQC+mv8KPh9zL6FgdqdIBQCfZLyl
YQDPp4X2gLL71zUboPqqDvk=
=lO5i
-----END PGP SIGNATURE-----



More information about the bazaar mailing list