~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: Matthew Gordon
  • Date: 2010-09-29 01:57:02 UTC
  • mto: (5487.1.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 5488.
  • Revision ID: mgordon@ivs3d.com-20100929015702-16w9ejt21oysws45
Tested push --no-tree ang gor it working right.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1372
1372
        return format
1373
1373
 
1374
1374
    def create_clone_on_transport(self, to_transport, revision_id=None,
1375
 
        stacked_on=None, create_prefix=False, use_existing_dir=False):
 
1375
        stacked_on=None, create_prefix=False, use_existing_dir=False,
 
1376
        no_tree=None):
1376
1377
        """Create a clone of this branch and its bzrdir.
1377
1378
 
1378
1379
        :param to_transport: The transport to clone onto.
1391
1392
            revision_id = self.last_revision()
1392
1393
        dir_to = self.bzrdir.clone_on_transport(to_transport,
1393
1394
            revision_id=revision_id, stacked_on=stacked_on,
1394
 
            create_prefix=create_prefix, use_existing_dir=use_existing_dir)
 
1395
            create_prefix=create_prefix, use_existing_dir=use_existing_dir,
 
1396
            no_tree=no_tree)
1395
1397
        return dir_to.open_branch()
1396
1398
 
1397
1399
    def create_checkout(self, to_location, revision_id=None,
1819
1821
            "with a bzrlib.branch.PullResult object and only runs in the "
1820
1822
            "bzr client.", (0, 15), None))
1821
1823
        self.create_hook(HookPoint('pre_commit',
1822
 
            "Called after a commit is calculated but before it is is "
 
1824
            "Called after a commit is calculated but before it is "
1823
1825
            "completed. pre_commit is called with (local, master, old_revno, "
1824
1826
            "old_revid, future_revno, future_revid, tree_delta, future_tree"
1825
1827
            "). old_revid is NULL_REVISION for the first commit to a branch, "