~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to fetch_ghosts.py

  • Committer: Aaron Bentley
  • Date: 2005-11-19 20:23:18 UTC
  • mto: This revision was merged to the branch mainline in revision 288.
  • Revision ID: aaron.bentley@utoronto.ca-20051119202318-949ba01504dc8b52
Updates to match API changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
                    installed.append(revision)
47
47
                except InstallFailed:
48
48
                    failed.append(revision)
 
49
            else:
 
50
                if this_branch.last_revision() is None:
 
51
                    print "No revisions in branch."
49
52
            if len(installed) > 0:
50
53
                print "Installed:"
51
54
                for rev in installed:
68
71
    """Find all ancestors that aren't stored in this branch."""
69
72
    seen = set()
70
73
    lines = [branch.last_revision()]
 
74
    if lines[0] is None:
 
75
        return
71
76
    while len(lines) > 0:
72
77
        new_lines = []
73
78
        for line in lines: