~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/workingtree_4.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-04-28 10:30:12 UTC
  • mfrom: (5741.1.12 move-interbranch-fetch2)
  • Revision ID: pqm@pqm.ubuntu.com-20110428103012-4mp8o2h32tluszv7
(jelmer) Make Branch.fetch() no longer take a fetch_spec (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
2016
2016
    def make_source_parent_tree(source, target):
2017
2017
        """Change the source tree into a parent of the target."""
2018
2018
        revid = source.commit('record tree')
2019
 
        target.branch.repository.fetch(source.branch.repository, revid)
 
2019
        target.branch.fetch(source.branch, revid)
2020
2020
        target.set_parent_ids([revid])
2021
2021
        return target.basis_tree(), target
2022
2022