Mercurial > public > mercurial-scm > hg-stable
diff mercurial/revset.py @ 18991:c1af1fb314bc
log: fix behavior with empty repositories (issue3497)
Make output in this special case consistent with general case one.
author | Alexander Plavin <me@aplavin.ru> |
---|---|
date | Wed, 17 Apr 2013 00:29:54 +0400 |
parents | 9e39a717a23e |
children | 26ddce1a2a55 |
line wrap: on
line diff
--- 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)