Show More
@@ -399,6 +399,9 b' def only(repo, subset, x):' | |||
|
399 | 399 | args = getargs(x, 1, 2, _('only takes one or two arguments')) |
|
400 | 400 | include = getset(repo, spanset(repo), args[0]).set() |
|
401 | 401 | if len(args) == 1: |
|
402 | if len(include) == 0: | |
|
403 | return baseset([]) | |
|
404 | ||
|
402 | 405 | descendants = set(_revdescendants(repo, include, False)) |
|
403 | 406 | exclude = [rev for rev in cl.headrevs() |
|
404 | 407 | if not rev in descendants and not rev in include] |
General Comments 0
You need to be logged in to leave comments.
Login now