5
[ 7114] Tue 22:37:07.305 ERROR: exceptions.TypeError: args must be a sequence of strings, but was ('cat-log', '--dir', '/home/robey/code/ testing/baz2bzr-618h1D/rd', bzrlib.plugins.bzrtools- baz2bzr.pybaz.Revision('robey@lag.net--2003-public/secsh--dev--1.0-- base-0'))
6
at /home/robey/code/bzrtools/pybaz/backends/forkexec.py line 254 in __init__
7
Traceback (most recent call last):
8
File "/home/robey/code/bzr.dev/bzrlib/commands.py", line 557, in run_bzr_catch_errors
10
File "/home/robey/code/bzr.dev/bzrlib/commands.py", line 520, in run_bzr
11
ret = cmd_obj.run_argv(argv)
12
File "/home/robey/code/bzr.dev/bzrlib/commands.py", line 233, in run_argv
13
return self.run(**all_cmd_args)
14
File "/home/robey/.bazaar/plugins/bzrtools-baz2bzr/baz_import.py", line 713, in run
15
reuse_history_from=reuse_history_list)
16
File "/home/robey/.bazaar/plugins/bzrtools-baz2bzr/baz_import.py", line 398, in import_version
18
File "/home/robey/.bazaar/plugins/bzrtools-baz2bzr/baz_import.py", line 545, in iter_import_version
19
tree, baz_inv, log = get_revision(revdir, revision)
20
File "/home/robey/.bazaar/plugins/bzrtools-baz2bzr/baz_import.py", line 643, in get_revision
21
log = get_log(tree, revision)
22
File "/home/robey/.bazaar/plugins/bzrtools-baz2bzr/baz_import.py", line 638, in get_log
23
assert str(log.revision) == str(revision), (log.revision, revision)
24
File "/home/robey/.bazaar/plugins/bzrtools-baz2bzr/external/pybaz/ _patchlog.py", line 171, in _get_revision
25
assert self.__revision == self['Archive']+'/'+self['Revision']
26
File "/home/robey/.bazaar/plugins/bzrtools-baz2bzr/external/pybaz/ _patchlog.py", line 150, in __getitem__
27
return self._parse()[header]
28
File "/home/robey/.bazaar/plugins/bzrtools-baz2bzr/external/pybaz/ _patchlog.py", line 133, in _parse
29
s = _backend().text_cmd(
30
File "/home/robey/code/bzrtools/pybaz/backends/commandline.py", line 141, in text_cmd
31
status, text = self._get_spawner().status_text_cmd(args, chdir, (0,))
32
File "/home/robey/code/bzrtools/pybaz/backends/commandline.py", line 240, in status_text_cmd
33
return self._guess().status_text_cmd(*args, **kwargs)
34
File "/home/robey/code/bzrtools/pybaz/backends/forkexec.py", line 62, in status_text_cmd
36
File "/home/robey/code/bzrtools/pybaz/backends/forkexec.py", line 107, in exec_safe_status_stdout
37
proc = ChildProcess(program, args, expected, chdir, logger)
38
File "/home/robey/code/bzrtools/pybaz/backends/forkexec.py", line 254, in __init__
42
is fixed by this tiny patch to pybaz:
44
--- orig/pybaz/_patchlog.py
45
+++ mod/pybaz/_patchlog.py
47
if not p.has_archive() or not p.has_patchlevel:
48
raise errors.NamespaceError(revision,
49
'fully-qualified revision')
50
- self.__revision = revision
51
+ self.__revision = str(revision)
58
I'm sure that's fixing the symptom and not the bug, but it was sufficient for me to migrate paramiko, so I thought I'd share it.