traceback when shelve'ing binary file
Alexander Belchenko
bialix at ukr.net
Wed Jan 17 04:17:48 GMT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
TK Soh пишет:
> 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'
No. shelve don't able to handle binary files well. In the past I wrote
simple hack to avoid this traceback, but... Try to search in archives.
Actually problem in bzr itself.
> 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
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFraNszYr338mxwCURAmmuAJ9/zJNFSYeo1zjUJxAvgEmv/nEuoACgjQ3B
dZtDmAT5/pKnm5NaN2uv6gw=
=Lkqt
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list