/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/branch.py

  • Committer: Jelmer Vernooij
  • Date: 2020-05-06 02:13:25 UTC
  • mfrom: (7490.7.21 work)
  • mto: This revision was merged to the branch mainline in revision 7501.
  • Revision ID: jelmer@jelmer.uk-20200506021325-awbmmqu1zyorz7sj
Merge 3.1 branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1188
1188
        if revno < 1 or revno > self.revno():
1189
1189
            raise errors.InvalidRevisionNumber(revno)
1190
1190
 
1191
 
    def clone(self, to_controldir, revision_id=None, repository_policy=None,
1192
 
              tag_selector=None):
 
1191
    def clone(self, to_controldir, revision_id=None, name=None,
 
1192
              repository_policy=None, tag_selector=None):
1193
1193
        """Clone this branch into to_controldir preserving all semantic values.
1194
1194
 
1195
1195
        Most API users will want 'create_clone_on_transport', which creates a
1198
1198
        revision_id: if not None, the revision history in the new branch will
1199
1199
                     be truncated to end with revision_id.
1200
1200
        """
1201
 
        result = to_controldir.create_branch()
 
1201
        result = to_controldir.create_branch(name=name)
1202
1202
        with self.lock_read(), result.lock_write():
1203
1203
            if repository_policy is not None:
1204
1204
                repository_policy.configure_branch(result)