/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: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2020-05-06 03:06:18 UTC
  • mfrom: (7500.1.2 trunk-merge-3.1)
  • Revision ID: breezy.the.bot@gmail.com-20200506030618-131sjbc876q7on66
Merge the 3.1 branch.

Merged from https://code.launchpad.net/~jelmer/brz/trunk-merge-3.1/+merge/383481

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)