diff -r 7373be706f02 -r c1af1fb314bc mercurial/revset.py --- a/mercurial/revset.py Tue Apr 16 13:22:29 2013 -0500 +++ b/mercurial/revset.py Wed Apr 17 00:29:54 2013 +0400 @@ -238,12 +238,10 @@ return [x for x in r if x in s] def dagrange(repo, subset, x, y): - if subset: - r = list(repo) - xs = _revsbetween(repo, getset(repo, r, x), getset(repo, r, y)) - s = set(subset) - return [r for r in xs if r in s] - return [] + r = list(repo) + xs = _revsbetween(repo, getset(repo, r, x), getset(repo, r, y)) + s = set(subset) + return [r for r in xs if r in s] def andset(repo, subset, x, y): return getset(repo, getset(repo, subset, x), y)