fast-export using existing marks is broken
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Breezy |
Triaged
|
High
|
Jelmer Vernooij |
Bug Description
Running 'brz fast-export' with the --export-marks (or --marks) option results in an internal error traceback:
$ mkdir brz-test
$ cd brz-test/
$ brz init
Created a standalone tree (format: 2a)
$ touch foo
$ brz add foo
adding foo
$ brz commit -m foo
bzr: warning: The commit message is a file name: "foo".
(use --file "foo" to take commit message from that file)
Committing to: /home/bwh/
added foo
Committed revision 1.
$ brz fast-export --git-branch=trunk . ../brz-
16:47:58 Calculating the revisions to include ...
16:47:58 Starting export of 1 revisions ...
brz: ERROR: AttributeError: 'int' object has no attribute 'lstrip'
Traceback (most recent call last):
File "/usr/lib/
return the_callable(*args, **kwargs)
File "/usr/lib/
ret = run(*run_argv)
File "/usr/lib/
return self.run(
File "/usr/lib/
return class_run(*args, **kwargs)
File "/usr/lib/
return exporter.run()
File "/usr/lib/
self.
File "/usr/lib/
marks_
File "/usr/lib/
f.write(':%s %s\n' % (mark.lstrip(
AttributeError: 'int' object has no attribute 'lstrip'
brz 3.1.0 on python 3.8.5 (Linux-
arguments: ['/usr/bin/brz', 'fast-export', '--git-
marks=
plugins: bash_completion
commitfromn
fastimport[
gitlab[3.1.0], hg[3.1.0], launchpad[3.1.0], mtn[3.1.0],
netrc_
propose[3.1.0], quilt[unknown], repodebug[3.1.0], rewrite[unknown],
stats[3.1.0], svn[3.1.0], upload[3.1.0], weave_fmt[3.1.0],
zsh_
encoding: 'ascii', fsenc: 'utf-8', lang: 'C'
*** Bazaar has encountered an internal error. This probably indicates a
bug in Bazaar. You can help us fix it by filing a bug report at
https:/
including this traceback and a description of the problem.
A different error message is shown when using the --marks option and a previously generated marks file:
13:47:46 Calculating the revisions to include ...
13:47:46 Starting export of 446 revisions ...
brz: ERROR: KeyError: b'null:'
Traceback (most recent call last):
File "/usr/lib/
return the_callable(*args, **kwargs)
File "/usr/lib/
ret = run(*run_argv)
File "/usr/lib/
return self.run(
File "/usr/lib/
return class_run(*args, **kwargs)
File "/usr/lib/
return exporter.run()
File "/usr/lib/
File "/usr/lib/
KeyError: b'null:'
brz 3.1.0 on python 3.8.3 (Linux-
arguments: ['/usr/bin/brz', 'fast-export', '--git-
plugins: bash_completion
encoding: 'utf-8', fsenc: 'utf-8', lang: 'C.UTF-8'
*** Bazaar has encountered an internal error. This probably indicates a
bug in Bazaar. You can help us fix it by filing a bug report at
https:/
including this traceback and a description of the problem.
Changed in brz: | |
status: | New → Triaged |
importance: | Undecided → High |
assignee: | nobody → Jelmer Vernooij (jelmer) |
summary: |
- fast-export marks options are broken + fast-export using existing marks is broken |
I realise now that I've been testing two different versions.
The first failure is seen in 3.1.0. I believe it was fixed by https:/ /code.launchpad .net/~jelmer/ brz/marks- export/ +merge/ 386706 but that fix is not present in any release yet.
The second failure is seen in r7580. I'll re-test with the top of the brz-3.1 branch.
I can close this and open a new report for the second failure if that's helpful.