bzr deletes user created symlinks/dirs on 'add;revert'

Bug #590786 reported by Parth Malwankar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Medium
Unassigned

Bug Description

[abc]% ln -s INSTALL inst
[abc]% ls -l inst
lrwxrwxrwx 1 parthm parthm 7 2010-06-07 19:00 inst -> INSTALL
[abc]% bzr add inst
adding inst
[abc]% bzr st
added:
  inst@
[abc]% bzr revert
-D inst@
[abc]% ls -l inst
ls: cannot access inst: No such file or directory
[abc]% bzr version --short
2.2b3

I would expect 'inst' above would just be removed from the add list and still be on disk.

Revision history for this message
Robert Collins (lifeless) wrote :

Yes, thats what should happen and does with files.

Changed in bzr:
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Parth Malwankar (parthm) wrote :

I noticed that the add;revert sequence also deletes added directories. This looks to be the same as the symlink issue mentioned here so I am not opening a new bug.

[1]% bzr init
Created a standalone tree (format: 2a)
[1]% mkdir -p foo/bar/spam
[1]% bzr add
adding foo
adding foo/bar
adding foo/bar/spam
[1]% bzr revert
-D foo/
-D foo/bar/
-D foo/bar/spam/
[1]% ls
[1]% cd foo
cd: no such file or directory: foo
[1]% ls
[1]%

summary: - bzr deletes user created symlinks on 'add;revert'
+ bzr deletes user created symlinks/dirs on 'add;revert'
Jelmer Vernooij (jelmer)
tags: added: revert symlink
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
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.