[MERGE][0.15] Better error on incompatible formats

Aaron Bentley aaron.bentley at utoronto.ca
Wed Mar 28 15:10:35 BST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all,

This patch gives a better error when you try to fetch from an
incompatible repository.

Currently, you get a traceback:
$ bzr pull -d foo bar
bzr: ERROR: exceptions.NotImplementedError: <bound method
InterRepository.fetch of <bzrlib.repository.InterRepository object at
0x40744a6c>>

Traceback (most recent call last):
  File "/home/abentley/bzr/bzr.dev/bzrlib/commands.py", line 638, in
run_bzr_catch_errors
    return run_bzr(argv)

This patch changes it to a better error:
bzr: ERROR: Repository
KnitRepository('file:///home/abentley/bzr/bzr.ab.integration/foo/.bzr/')
is not compatible with repository
KnitRepository3('file:///home/abentley/bzr/bzr.ab.integration/bar/.bzr/')

While this situation isn't common today, it will become common as people
start using nested trees, and it would be bad if mere repository
incompatibility caused tracebacks.

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGCndb0F+nu1YWqI0RAjWgAJ0e96svjFP8nLp1apeIUzZ/E9Ef+ACfe8tS
SSpq1asogFTJcFkpwYf/jSQ=
=hWun
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fetch-incompatible-error.patch
Type: text/x-patch
Size: 3237 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20070328/95390c74/attachment-0001.bin 


More information about the bazaar mailing list