~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/missing.py

  • Committer: Martin Pool
  • Date: 2005-09-05 09:27:11 UTC
  • Revision ID: mbp@sourcefrog.net-20050905092711-f9f5bded3fd82605
- more disentangling of xml storage format from objects

- remove pack_xml and unpack_xml function in favor of 
  serializer object

- test unpacking canned revision xml

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: