~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/remotebranch.py

  • Committer: Martin Pool
  • Date: 2005-08-22 16:31:16 UTC
  • Revision ID: mbp@sourcefrog.net-20050822163116-935a433f338e7d5b
- new shell-complete command to help zsh completion

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):
155
155
 
156
156
    def get_revision(self, revision_id):
157
157
        from bzrlib.revision import Revision
158
 
        try:
159
 
            revf = self.revision_store[revision_id]
160
 
        except KeyError:
161
 
            raise NoSuchRevision(self, revision_id)
162
 
        r = serializer_v4.read_revision(revf)
 
158
        from bzrlib.xml import unpack_xml
 
159
        revf = self.revision_store[revision_id]
 
160
        r = unpack_xml(Revision, revf)
163
161
        if r.revision_id != revision_id:
164
162
            raise BzrCheckError('revision stored as {%s} actually contains {%s}'
165
163
                                % (revision_id, r.revision_id))