~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/missing.py

  • Committer: Aaron Bentley
  • Date: 2005-09-19 02:52:24 UTC
  • mto: (1185.1.29)
  • mto: This revision was merged to the branch mainline in revision 1390.
  • Revision ID: aaron.bentley@utoronto.ca-20050919025224-1cc3c70640086e09
TODO re tests

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
 
5
13
def show_missing(br_local, br_remote, verbose=False, quiet=False):
6
14
    """Show the revisions which exist in br_remote, that 
7
15
    do not exist in br_local.
60
68
    for revno, rev_id in missing_remote:
61
69
        rev = br_remote.get_revision(rev_id)
62
70
        if verbose:
63
 
            parent_rev_id = rev.parent_ids[0]
 
71
            parent_rev_id = rev.parents[0].revision_id
64
72
            if last_rev_id == parent_rev_id:
65
73
                parent_tree = last_tree
66
74
            else: