~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/remotebranch.py

  • Committer: Martin Pool
  • Date: 2005-09-06 07:54:19 UTC
  • Revision ID: mbp@sourcefrog.net-20050906075419-97922ec4ed62b3ae
- clean up imports in commit code

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
import urllib2
30
30
 
31
31
from errors import BzrError, BzrCheckError
32
 
from branch import Branch, BZR_BRANCH_FORMAT
 
32
from branch import Branch, BZR_BRANCH_FORMAT_5
33
33
from trace import mutter
34
34
 
35
35
# velocitynet.com.au transparently proxies connections and thereby
89
89
            fmt = ff.read()
90
90
            ff.close()
91
91
 
92
 
            fmt = fmt.rstrip('\r\n')
93
 
            if fmt != BZR_BRANCH_FORMAT.rstrip('\r\n'):
 
92
            if fmt != BZR_BRANCH_FORMAT_5:
94
93
                raise BzrError("sorry, branch format %r not supported at url %s"
95
94
                               % (fmt, url))
96
95