Smart add misses dir contents if dir was added as a different file type initally
Bug #921484 reported by
Artur Rataj
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
Low
|
Unassigned |
Bug Description
When doing `bzr add` either with no arguments or on a directory, if a directory was previously added when it was a different kind of file, the contents will not be added:
$ bzr init branch
Created a standalone tree (format: 2a)
$ cd branch
$ touch d
$ bzr add
adding d
$ bzr add
$ rm d
$ mkdir d
$ touch d/f
$ bzr add
$ bzr st
added:
d/
unknown:
d/f
$ bzr add
$ bzr commit -m"Just add d"
Committing to: /tmp/branch/
added d
Committed revision 1.
$ bzr add
adding d/f
Using `bzr rm` or adding the contents by passing them explicitly as parameters does work.
tags: | added: check-for-breezy |
To post a comment you must log in.
After I upgraded to 2.5beta, bzr commit added the directory but not the files in it, but this time no exception was reported.
But, I supposed bazaar confused the already non--existing link with the directory, because both had the same name, and the files in the directory were not added. Thus, I moved the directory somewhere else, made a commit, then I moved the directory back to the branch, add, commit, and this time all files in the directory were added as well.