bzr fast-export of update-manager to git fast-import fails

Bug #1994138 reported by Benjamin Drung
6
This bug affects 1 person
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-branch=master
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 UpdateManagerCommon/Makefile not in branch
fast-import: dumping crash report to .git/fast_import_crash_213962
brz: broken pipe
```

Revision history for this message
Benjamin Drung (bdrung) wrote :
Revision history for this message
Benjamin Drung (bdrung) wrote :

This is a bug in bzr fast-export. "bzr log -v -r2" shows that Common/ is renamed to UpdateManagerCommon/:

```
$ 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-extract.in
  intltool-merge
  intltool-merge.in
  intltool-update
  omf.make
  xmldocs.make
added:
  UpdateManagerCommon/__init__.py
  setup.py
renamed:
  Common/ => UpdateManagerCommon/
  SoftwareProperties/SoftwareProperties.py.in => SoftwareProperties/SoftwareProperties.py
  distribution-data/ => channels/
  src/update-manager.in => src/update-manager
modified:
  Common/DistInfo.py
  SoftwareProperties/aptsources.py
  SoftwareProperties/dialog_add.py
  SoftwareProperties/SoftwareProperties.py
  src/update-manager
```

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
R SoftwareProperties/SoftwareProperties.py.in SoftwareProperties/SoftwareProperties.py
R src/update-manager.in src/update-manager
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 UpdateManagerCommon/DistInfo.py
data 3654
[...]
```

affects: git (Ubuntu) → breezy (Ubuntu)
Revision history for this message
Benjamin Drung (bdrung) wrote :

Tested also brz 3.3.0+bzr7661-2 in a Debian unstable chroot. Same result.

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.