bzr add and revert on symlink deletes symlink
Bug #87548 reported by
Kent Gibson
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Adding a symlink to bzr and then reverting results in the symlink being removed
i.e.
echo > a
ln -s a b
bzr add b
bzr revert b
now b is gone.
Similarly, if there is a directory of symlinks (just symlinks) then add/revert will result in the complete directory being deleted.
e.g.
bzr add /etc/apache2/
bzr revert /etc/apache2/
You would hope that bzr add followed by bzr revert would be a null operation.
description: | updated |
To post a comment you must log in.
bzr will also try and delete directories in the same way, but will not if they are not
empty, so wont cause any data loss.
It seems it is only files that it will try and preserve at all, and then only in some cases.
When I saw this bug I was suprised, but looking at the code it seems it is intentional, though I can't see a test for it with a quick look.