[Bug 87548] Re: bzr add and revert on symlink deletes symlink
warthog618 at gmail.com
Fri Jul 13 10:23:30 BST 2007
-----BEGIN PGP SIGNED MESSAGE-----
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
$ bzr revert a
- - a
then a will still be there.
$ echo > a
$ ln -s a b
$ bzr add b
$ bzr revert b
- -D 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 ???
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the bazaar