Show More
@@ -399,6 +399,9 b' def only(repo, subset, x):' | |||||
399 | args = getargs(x, 1, 2, _('only takes one or two arguments')) |
|
399 | args = getargs(x, 1, 2, _('only takes one or two arguments')) | |
400 | include = getset(repo, spanset(repo), args[0]).set() |
|
400 | include = getset(repo, spanset(repo), args[0]).set() | |
401 | if len(args) == 1: |
|
401 | if len(args) == 1: | |
|
402 | if len(include) == 0: | |||
|
403 | return baseset([]) | |||
|
404 | ||||
402 | descendants = set(_revdescendants(repo, include, False)) |
|
405 | descendants = set(_revdescendants(repo, include, False)) | |
403 | exclude = [rev for rev in cl.headrevs() |
|
406 | exclude = [rev for rev in cl.headrevs() | |
404 | if not rev in descendants and not rev in include] |
|
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