bzr fast-export of update-manager to git fast-import fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
breezy (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Converting update-manager from bzr to git fails (on Ubuntu 22.04 and 22.10):
```
bzr branch lp:~ubuntu-core-dev/update-manager/main update-manager
mkdir update-manager.git
cd update-manager.git
git init --initial-
bzr fast-export --plain ../update-manager | git fast-import
```
Log output:
```
13:26:42 Calculating the revisions to include ...
13:26:42 Starting export of 4392 revisions ...
13:26:42 1000/4392 commits exported at 175211/minute
13:26:42 1000/4392 commits exported at 170185/minute
13:26:43 1000/4392 commits exported at 147485/minute
13:26:43 1000/4392 commits exported at 141297/minute
13:26:43 1000/4392 commits exported at 140854/minute
13:26:43 1000/4392 commits exported at 140695/minute
13:26:43 1000/4392 commits exported at 125106/minute
13:26:43 1000/4392 commits exported at 123494/minute
fatal: Path UpdateManagerCo
fast-import: dumping crash report to .git/fast_
brz: broken pipe
```
This is a bug in bzr fast-export. "bzr log -v -r2" shows that Common/ is renamed to UpdateManagerCo mmon/:
``` ------- ------- ------- ------- ------- ------- ------- ---- extract. in Common/ __init_ _.py mmon/ rties/SoftwareP roperties. py.in => SoftwarePropert ies/SoftwarePro perties. py data/ => channels/ manager. in => src/update-manager DistInfo. py rties/aptsource s.py rties/dialog_ add.py rties/SoftwareP roperties. py manager
$ bzr log -v -r2
-------
revno: 2
committer: Michael Vogt <egon@top>
timestamp: Tue 2005-11-15 15:08:26 +0100
message:
* switched to python dist-utils (DIE auto* DIE)
* works with channels now (for adding)
removed:
configure
install-sh
intltool-extract
intltool-
intltool-merge
intltool-merge.in
intltool-update
omf.make
xmldocs.make
added:
UpdateManager
setup.py
renamed:
Common/ => UpdateManagerCo
SoftwarePrope
distribution-
src/update-
modified:
Common/
SoftwarePrope
SoftwarePrope
SoftwarePrope
src/update-
```
But the output of "bzr fast-export --plain" does not contain this rename:
```
[...]
mark :2
committer Michael Vogt <egon@top> 1132063706 +0100
data 87
* switched to python dist-utils (DIE auto* DIE)
* works with channels now (for adding)
from :1 ies/SoftwarePro perties. py.in SoftwarePropert ies/SoftwarePro perties. py manager. in src/update-manager mmon/DistInfo. py
R SoftwarePropert
R src/update-
D configure
D install-sh
D intltool-extract
D intltool-extract.in
D intltool-merge
D intltool-merge.in
D intltool-update
D omf.make
D xmldocs.make
M 644 inline UpdateManagerCo
data 3654
[...]
```