mirror of
https://github.com/facebook/sapling.git
synced 2024-10-08 07:49:11 +03:00
dagop: use smartset.min() in revdescendants() generator
All callers pass the result of revset.getset(), which should be a smartset.
This commit is contained in:
parent
c6472824e6
commit
1103437683
@ -91,9 +91,7 @@ def _genrevdescendants(repo, revs, followfirst):
|
||||
cut = None
|
||||
|
||||
cl = repo.changelog
|
||||
# XXX this should be 'parentset.min()' assuming 'parentset' is a
|
||||
# smartset (and if it is not, it should.)
|
||||
first = min(revs)
|
||||
first = revs.min()
|
||||
nullrev = node.nullrev
|
||||
if first == nullrev:
|
||||
# Are there nodes with a null first parent and a non-null
|
||||
|
Loading…
Reference in New Issue
Block a user