Cannot remove dangling symlink
Bug #257665 reported by
Russ Brown
This bug report is a duplicate of:
Bug #128562: bzr commit FILE breaks when given symlink as argument.
Edit
Remove
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
Medium
|
Unassigned |
Bug Description
This is probably covered by other bugs that appear to deal with the same problem, but for other commands. Raising it for completeness.
Our migrated repository contains a stray dangling symlink that points to a file that doesn't exist, and bzr won't let me delete it.
Steps to reproduce:
bzr init test
cd test
ln -s /nowhere f
bzr add f
bzr ci -m "New"
bzr rm f
bzr rm --force f
The last two commands both respond with this:
bzr: ERROR: Not a branch: "/nowhere/".
Tested with 1.5, 1.6b3. 1.6r1 and bzr.dev.
To post a comment you must log in.
Hi,
The workaround is to simply "rm" the symlink, and bzr notices and does
the remove at the next commit.
Thanks,
James