# HG changeset patch # User Yuya Nishihara # Date 2015-01-10 07:41:36 # Node ID 77ef059b33174e223fff49f062f6a48ed25f97e3 # Parent 8e1f1673aa9ae2a84ee2a9136a865a569f69d1eb revset: drop unnecessary calls of getall() with empty argument If x is None, getall(repo, subset, x) == subset. diff --git a/mercurial/revset.py b/mercurial/revset.py --- a/mercurial/revset.py +++ b/mercurial/revset.py @@ -746,7 +746,7 @@ def destination(repo, subset, x): 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 @@ def origin(repo, subset, x): 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)