~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: Martin Pool
  • Date: 2005-09-29 02:59:11 UTC
  • mto: (1185.12.2) (1393.1.12)
  • mto: This revision was merged to the branch mainline in revision 1396.
  • Revision ID: mbp@sourcefrog.net-20050929025910-d5c463a554c32d78
- update upgrade command for new branch constructors

Show diffs side-by-side

added added

removed removed

Lines of Context:
132
132
        raise NotImplementedError('The Branch class is abstract')
133
133
 
134
134
    @staticmethod
135
 
    def open(base):
 
135
    def open(base, relax_version_check=False):
136
136
        """Open an existing branch, rooted at 'base' (url)"""
137
137
        if base and (base.startswith('http://') or base.startswith('https://')):
138
138
            from bzrlib.remotebranch import RemoteBranch
139
 
            return RemoteBranch(base, find_root=False)
 
139
            return RemoteBranch(base, find_root=False, 
 
140
                                relax_version_check=relax_version_check)
140
141
        else:
141
 
            return LocalBranch(base, find_root=False)
 
142
            return LocalBranch(base, find_root=False,
 
143
                               relax_version_check=relax_version_check)
142
144
 
143
145
    @staticmethod
144
146
    def open_containing(url):