/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/bzr/branch.py

  • Committer: Jelmer Vernooij
  • Date: 2020-02-13 23:57:28 UTC
  • mfrom: (7490 work)
  • mto: This revision was merged to the branch mainline in revision 7492.
  • Revision ID: jelmer@jelmer.uk-20200213235728-m6ds0mm3mbs4y182
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
# along with this program; if not, write to the Free Software
16
16
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17
17
 
 
18
from __future__ import absolute_import
 
19
 
18
20
from io import BytesIO
19
21
import sys
20
22
 
27
29
    lockdir,
28
30
    rio,
29
31
    shelf,
30
 
    )
31
 
from breezy.bzr import (
32
32
    tag as _mod_tag,
33
33
    )
34
34
""")
1023
1023
 
1024
1024
    def _make_reference_clone_function(format, a_branch):
1025
1025
        """Create a clone() routine for a branch dynamically."""
1026
 
        def clone(to_bzrdir, revision_id=None, repository_policy=None, name=None,
1027
 
                  tag_selector=None):
 
1026
        def clone(to_bzrdir, revision_id=None,
 
1027
                  repository_policy=None):
1028
1028
            """See Branch.clone()."""
1029
 
            return format.initialize(to_bzrdir, target_branch=a_branch, name=name)
 
1029
            return format.initialize(to_bzrdir, target_branch=a_branch)
1030
1030
            # cannot obey revision_id limits when cloning a reference ...
1031
1031
            # FIXME RBC 20060210 either nuke revision_id for clone, or
1032
1032
            # emit some sort of warning/error to the caller ?!