~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/missing.py

  • Committer: Martin Pool
  • Date: 2005-09-07 23:14:30 UTC
  • mto: (1092.2.12) (974.1.76) (1185.8.2)
  • mto: This revision was merged to the branch mainline in revision 1390.
  • Revision ID: mbp@sourcefrog.net-20050907231430-097abbaee94ad75b
- docstring fix from Magnus Therning

Show diffs side-by-side

added added

removed removed

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