Rev 2748: better message for attempted fetch between aliased repositories in http://sourcefrog.net/bzr/pack-repository

Martin Pool mbp at sourcefrog.net
Tue Aug 28 11:28:50 BST 2007


At http://sourcefrog.net/bzr/pack-repository

------------------------------------------------------------
revno: 2748
revision-id: mbp at sourcefrog.net-20070828102850-a8qyqtb948y43rth
parent: mbp at sourcefrog.net-20070828102638-hljo5fm7a4bjthg2
committer: Martin Pool <mbp at sourcefrog.net>
branch nick: pack-repository
timestamp: Tue 2007-08-28 20:28:50 +1000
message:
  better message for attempted fetch between aliased repositories
modified:
  bzrlib/fetch.py                fetch.py-20050818234941-26fea6105696365d
=== modified file 'bzrlib/fetch.py'
--- a/bzrlib/fetch.py	2007-08-26 02:06:11 +0000
+++ b/bzrlib/fetch.py	2007-08-28 10:28:50 +0000
@@ -82,7 +82,8 @@
         if to_repository.has_same_location(from_repository):
             # repository.fetch should be taking care of this case.
             raise errors.BzrError('unreachable code - Interrepository fetch'
-                ' with the same repository.')
+                    'asked to fetch between two objects at the same location: '
+                    '%r and %r' % (to_repository, from_repository))
         self.to_repository = to_repository
         self.from_repository = from_repository
         # must not mutate self._last_revision as its potentially a shared instance




More information about the bazaar-commits mailing list