~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/remotebranch.py

  • Committer: Martin Pool
  • Date: 2005-09-01 11:19:08 UTC
  • Revision ID: mbp@sourcefrog.net-20050901111907-ff5ac13ee6fedc85
- split commit message editor functions out into own file

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 = False
 
39
ENABLE_URLGRABBER = True
40
40
 
41
 
from bzrlib.errors import BzrError, NoSuchRevision
 
41
from bzrlib.errors import BzrError
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
 
        try:
160
 
            revf = self.revision_store[revision_id]
161
 
        except KeyError:
162
 
            raise NoSuchRevision(self, revision_id)
 
159
        revf = self.revision_store[revision_id]
163
160
        r = unpack_xml(Revision, revf)
164
161
        if r.revision_id != revision_id:
165
162
            raise BzrCheckError('revision stored as {%s} actually contains {%s}'