~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/remotebranch.py

  • Committer: Martin Pool
  • Date: 2005-09-05 05:35:25 UTC
  • mfrom: (974.1.55)
  • Revision ID: mbp@sourcefrog.net-20050905053525-2112bac069dbe331
- merge various bug fixes from aaron

aaron.bentley@utoronto.ca-20050905020131-a2d5b7711dd6cd98

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}'