~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Robert Collins
  • Date: 2007-02-02 09:17:23 UTC
  • mfrom: (2249.4.2 tip.info)
  • mto: This revision was merged to the branch mainline in revision 2257.
  • Revision ID: robertc@robertcollins.net-20070202091723-xtak1zzhe2ylwksa
(robertc) Merge new Branch.last_revision_info method.

Show diffs side-by-side

added added

removed removed

Lines of Context:
663
663
            dir_to = br_from.bzrdir.clone(location_url,
664
664
                revision_id=br_from.last_revision())
665
665
            br_to = dir_to.open_branch()
666
 
            count = len(br_to.revision_history())
 
666
            count = br_to.last_revision_info()[0]
667
667
            # We successfully created the target, remember it
668
668
            if br_from.get_push_location() is None or remember:
669
669
                br_from.set_push_location(br_to.base)
2231
2231
        branch1 = Branch.open_containing(branch)[0]
2232
2232
        branch2 = Branch.open_containing(other)[0]
2233
2233
 
2234
 
        history_1 = branch1.revision_history()
2235
 
        history_2 = branch2.revision_history()
2236
 
 
2237
2234
        last1 = branch1.last_revision()
2238
2235
        last2 = branch2.last_revision()
2239
2236