/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/missing.py

Merge from mbp.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
A plugin for displaying what revisions are in 'other' but not in local.
3
3
"""
4
4
 
5
 
import bzrlib
6
 
 
7
 
try:
8
 
    set
9
 
except NameError:
10
 
    from sets import Set as set
11
 
 
12
 
 
13
5
def show_missing(br_local, br_remote, verbose=False, quiet=False):
14
6
    """Show the revisions which exist in br_remote, that 
15
7
    do not exist in br_local.
68
60
    for revno, rev_id in missing_remote:
69
61
        rev = br_remote.get_revision(rev_id)
70
62
        if verbose:
71
 
            parent_rev_id = rev.parents[0].revision_id
 
63
            parent_rev_id = rev.parent_ids[0]
72
64
            if last_rev_id == parent_rev_id:
73
65
                parent_tree = last_tree
74
66
            else: