~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/missing.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-03-13 08:29:37 UTC
  • mfrom: (3267.1.2 fast-missing)
  • Revision ID: pqm@pqm.ubuntu.com-20080313082937-sc9ovcwq3r10sjqd
(bialix) Significantly reducing execution time and network traffic
 for trivial case of `bzr missing`.

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
    try:
60
60
        remote_branch.lock_read()
61
61
        try:
 
62
            # check for special case: both branches are equivalent
 
63
            if (local_branch.last_revision_info() ==
 
64
                remote_branch.last_revision_info()):
 
65
                return [], []
62
66
            local_rev_history, local_rev_history_map = \
63
67
                _get_history(local_branch, progress, "local", 0)
64
68
            remote_rev_history, remote_rev_history_map = \