Cannot remove dangling symlink

Bug #257665 reported by Russ Brown
6
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.

Revision history for this message
James Westby (james-w) wrote :

Hi,

The workaround is to simply "rm" the symlink, and bzr notices and does
the remove at the next commit.

Thanks,

James

Changed in bzr:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Martin Pool (mbp) wrote :

This has the same root cause as bug 128562, and it should soon be fixed in 2.0 and later. Thanks for the report.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.