/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/missing.py

  • Committer: Marius Kruger
  • Date: 2009-01-01 23:21:07 UTC
  • mto: (3969.1.1 ianc-integration)
  • mto: This revision was merged to the branch mainline in revision 3970.
  • Revision ID: amanic@gmail.com-20090101232107-poye5hxejqgqq0sg
* _filter_revs can now handle None and len=3 revs
* fix up the rest of the white box tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
182
182
 
183
183
 
184
184
def _filter_revs(graph, revs, revid_range):
185
 
    if revid_range is None:
 
185
    if revid_range is None or revs is None:
186
186
        return revs
187
 
    return [(revno, revision_id) for revno, revision_id in revs
188
 
        if graph.is_between(revision_id, revid_range[0], revid_range[1])]
 
187
    return [rev for rev in revs
 
188
        if graph.is_between(rev[1], revid_range[0], revid_range[1])]
189
189
 
190
190
 
191
191
def _find_unmerged(local_branch, remote_branch, restrict,