revset: drop unnecessary calls of getall() with empty argument
authorYuya Nishihara <yuya@tcha.org>
Sat, 10 Jan 2015 16:41:36 +0900
changeset 24201 77ef059b3317
parent 24200 8e1f1673aa9a
child 24202 2de9ee016425
revset: drop unnecessary calls of getall() with empty argument If x is None, getall(repo, subset, x) == subset.
mercurial/revset.py
--- 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)