bzr fastimport fails to import branches with slashes in the name from git correctly
Bug #718604 reported by
Björn Michaelsen
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar Fast Import |
Triaged
|
Medium
|
Unassigned |
Bug Description
bzr fastimport maps heirarchical git branches too lossy. As "foo/bar" and "baz/bar" both get mapped to "bar", trouble is guaranteed.
I attached a patch that will make bzr fastimport recreate the branches with full names. I have not tested the patch on Windows, where using a slash might introduce its own set of problems with platform dependence as it is not the path separator there.
Changed in bzr-fastimport: | |
status: | New → Triaged |
importance: | Undecided → Medium |
To post a comment you must log in.
I attached a second possible solution, which maps "/" in the git-branchnames to "--" in bzr. While this mapping misses some elegance, it should not be prone to platform dependence and removes the need for os/os.path calls.
What is still missing in the patches is a short update to bzr fast-import --help documenting the behavior.