~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/remotebranch.py

  • Committer: Robert Collins
  • Date: 2005-09-06 11:09:03 UTC
  • mfrom: (1178)
  • mto: (1185.1.10) (1092.3.1)
  • mto: This revision was merged to the branch mainline in revision 1390.
  • Revision ID: robertc@robertcollins.net-20050906110903-b6be7bd6102403cb
really merge mpool

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
# breaks keep-alive -- sucks!
37
37
 
38
38
 
39
 
ENABLE_URLGRABBER = True
 
39
ENABLE_URLGRABBER = False
40
40
 
41
 
from bzrlib.errors import BzrError
 
41
from bzrlib.errors import BzrError, NoSuchRevision
42
42
 
43
43
class GetFailed(BzrError):
44
44
    def __init__(self, url, status):
156
156
    def get_revision(self, revision_id):
157
157
        from bzrlib.revision import Revision
158
158
        from bzrlib.xml import unpack_xml
159
 
        revf = self.revision_store[revision_id]
 
159
        try:
 
160
            revf = self.revision_store[revision_id]
 
161
        except KeyError:
 
162
            raise NoSuchRevision(self, revision_id)
160
163
        r = unpack_xml(Revision, revf)
161
164
        if r.revision_id != revision_id:
162
165
            raise BzrCheckError('revision stored as {%s} actually contains {%s}'