~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to gen_changeset.py

  • Committer: John Arbash Meinel
  • Date: 2005-07-11 04:46:11 UTC
  • mto: (0.5.85) (1185.82.1 bzr-w-changeset)
  • mto: This revision was merged to the branch mainline in revision 1738.
  • Revision ID: john@arbash-meinel.com-20050711044610-3ca0327c6a222f67
Handle the case where an ancestor doesn't exist in the revision store.

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
        if rev_id in this_revs:
51
51
            continue
52
52
        this_revs.add(rev_id)
53
 
        rev = branch.get_revision(rev_id)
 
53
        if rev_id in branch.revision_store:
 
54
            rev = branch.get_revision(rev_id)
 
55
        else:
 
56
            warning('Could not find revision for rev: {%s}'
 
57
                    % rev_id)
 
58
            continue
54
59
        for parent in rev.parents:
55
60
            if parent.revision_id not in this_revs:
56
61
                to_search.append(parent.revision_id)