~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

Merge the Branch.last_revision_info api change.

Show diffs side-by-side

added added

removed removed

Lines of Context:
660
660
            dir_to = br_from.bzrdir.clone(location_url,
661
661
                revision_id=br_from.last_revision())
662
662
            br_to = dir_to.open_branch()
663
 
            count = len(br_to.revision_history())
 
663
            count = br_to.last_revision_info()[0]
664
664
            # We successfully created the target, remember it
665
665
            if br_from.get_push_location() is None or remember:
666
666
                br_from.set_push_location(br_to.base)
2223
2223
        branch1 = Branch.open_containing(branch)[0]
2224
2224
        branch2 = Branch.open_containing(other)[0]
2225
2225
 
2226
 
        history_1 = branch1.revision_history()
2227
 
        history_2 = branch2.revision_history()
2228
 
 
2229
2226
        last1 = branch1.last_revision()
2230
2227
        last2 = branch2.last_revision()
2231
2228