traceback when shelve'ing binary file

TK Soh teekaysoh at gmail.com
Tue Jan 16 22:16:11 GMT 2007


Doesn't shelve work with binary file? I am getting a traceback:

% bzr shelve
bzr: ERROR: bzrlib.patches.MalformedPatchHeader: Malformed patch
header.  No orig name
u'Binary files aaa.wspdb\t2007-01-16 21:52:11 +0000 and
aaa.wspdb\t2007-01-16 22:12:22 +0000 differ\n'

Traceback (most recent call last):
  File "/usr/local/ASpy24/lib/python2.4/site-packages/bzrlib/commands.py",
line 626, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/local/ASpy24/lib/python2.4/site-packages/bzrlib/commands.py",
line 588, in run_bzr
    ret = run(*run_argv)
  File "/usr/local/ASpy24/lib/python2.4/site-packages/bzrlib/commands.py",
line 292, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/local/ASpy24/lib/python2.4/site-packages/bzrlib/plugins/bzrtools/__init__.py",
line 248, in run
    s.shelve(source, all, message, no_color)
  File "/usr/local/ASpy24/lib/python2.4/site-packages/bzrlib/plugins/bzrtools/shelf.py",
line 203, in shelve
    patches = patch_source.readpatches()
  File "/usr/local/ASpy24/lib/python2.4/site-packages/bzrlib/plugins/bzrtools/patchsource.py",
line 14, in readpatches
    return patches.parse_patches(self.readlines())
  File "/usr/local/ASpy24/lib/python2.4/site-packages/bzrlib/patches.py",
line 355, in parse_patches
    return [parse_patch(f.__iter__()) for f in iter_file_patch(iter_lines)]
  File "/usr/local/ASpy24/lib/python2.4/site-packages/bzrlib/patches.py",
line 310, in parse_patch
    (orig_name, mod_name) = get_patch_names(iter_lines)
  File "/usr/local/ASpy24/lib/python2.4/site-packages/bzrlib/patches.py",
line 61, in get_patch_names
    raise MalformedPatchHeader("No orig name", line)
MalformedPatchHeader: Malformed patch header.  No orig name
u'Binary files aaa.wspdb\t2007-01-16 21:52:11 +0000 and
aaa.wspdb\t2007-01-16 22:12:22 +0000 differ\n'

bzr 0.13.0 on python 2.4.1.final.0 (sunos5)
arguments: ['/home/r28629/usr/SunOS-5.6/bin/bzr', 'shelve']

** please send this report to bazaar-ng at lists.ubuntu.com



More information about the bazaar mailing list