changeset 24201:77ef059b3317

revset: drop unnecessary calls of getall() with empty argument If x is None, getall(repo, subset, x) == subset.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 10 Jan 2015 16:41:36 +0900
parents 8e1f1673aa9a
children 2de9ee016425
files mercurial/revset.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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)