Changeset 05f5fbf in mainline for contrib/bazaar/bzreml/__init__.py
- Timestamp:
- 2012-08-09T16:08:22Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c9797067
- Parents:
- 71450c8 (diff), 371cb6c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
contrib/bazaar/bzreml/__init__.py
r71450c8 r05f5fbf 102 102 return "" 103 103 104 def iter_reverse_revision_history(repository, revision_id): 105 """Iterate backwards through revision ids in the lefthand history""" 106 107 graph = repository.get_graph() 108 stop_revisions = (None, _mod_revision.NULL_REVISION) 109 return graph.iter_lefthand_ancestry(revision_id, stop_revisions) 110 104 111 def revision_sequence(branch, revision_old_id, revision_new_id): 105 112 """Calculate a sequence of revisions""" 106 113 107 for revision_ac_id in branch.repository.iter_reverse_revision_history(revision_new_id):114 for revision_ac_id in iter_reverse_revision_history(branch.repository, revision_new_id): 108 115 if (revision_ac_id == revision_old_id): 109 116 break
Note:
See TracChangeset
for help on using the changeset viewer.