~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/missing.py

  • Committer: Michael Ellerman
  • Date: 2006-05-30 15:03:34 UTC
  • mto: (1711.2.63 jam-integration)
  • mto: This revision was merged to the branch mainline in revision 1792.
  • Revision ID: michael@ellerman.id.au-20060530150334-1729470bccee74ee
Add an optional location parameter to the 'revision-history' command.

Add tests for revision history against regular and repository branches,
as well as checkouts and lightweight checkouts for completeness.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
"""\
2
 
A plugin for displaying what revisions are in 'other' but not in local.
3
 
"""
4
 
from bzrlib.ui import ui_factory
 
1
"""Display what revisions are missing in 'other' from 'this' and vice verca."""
 
2
 
 
3
import bzrlib.ui as ui
 
4
 
 
5
 
5
6
def iter_log_data(revisions, revision_source, verbose):
6
7
    from bzrlib.diff import compare_trees
7
8
    from bzrlib.tree import EmptyTree
26
27
 
27
28
 
28
29
def find_unmerged(local_branch, remote_branch):
29
 
    progress = ui_factory.progress_bar()
 
30
    progress = ui.ui_factory.nested_progress_bar()
30
31
    local_branch.lock_read()
31
32
    try:
32
33
        remote_branch.lock_read()
60
61
            remote_branch.unlock()
61
62
    finally:
62
63
        local_branch.unlock()
63
 
        progress.clear()
 
64
        progress.finished()
64
65
    return (local_extra, remote_extra)
65
66
 
66
67
def _shortcut(local_rev_history, remote_rev_history):