"orphan_policy=move" does not preserve directory structure of orphaned files
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
Wishlist
|
Unassigned |
Bug Description
The behavior cited is from bzr 2.4.2.
The "bzr.transform.
Example: "foo/" is versioned, and contains unversioned file "foo/orphan.txt". If a tree transform needs to remove "foo" then the content of "foo/orphan.txt" is placed in "bzr-orphans/
I think that the full filename and directory structure for orphaned files should be preserved. Off the top of my head, I would suggest generating a per-transform UUID and using that as a subdirectory name under bzr-orphans. So for the preceding example, the tree transform would generate an orphan file in "bzr-orphans/
Changed in bzr: | |
importance: | Undecided → Wishlist |
status: | New → Confirmed |
tags: | added: check-for-breezy |
(Note that this bug report should not be viewed as an endorsement of the "orphan_ policy= move" approach. Even if the behavior is fixed, I don't think this policy actually does what developers want. It would be better to avoid generating any kind of conflict at all when a tree transform wants to remove a directory containing unversioned files... just unversion the directory and be done with it.)