revset: drop unnecessary calls of getall() with empty argument
If x is None, getall(repo, subset, x) == subset.
--- a/mercurial/revset.py Wed Mar 04 21:47:07 2015 +0900
+++ b/mercurial/revset.py Sat Jan 10 16:41:36 2015 +0900
@@ -746,7 +746,7 @@
if x is not None:
sources = getset(repo, fullreposet(repo), x)
else:
- sources = getall(repo, fullreposet(repo), x)
+ sources = fullreposet(repo)
dests = set()
@@ -1347,7 +1347,7 @@
if x is not None:
dests = getset(repo, fullreposet(repo), x)
else:
- dests = getall(repo, fullreposet(repo), x)
+ dests = fullreposet(repo)
def _firstsrc(rev):
src = _getrevsource(repo, rev)