# HG changeset patch # User Lucas Moscovicz # Date 2014-03-14 20:26:40 # Node ID 74139960c302ac8ca58c19335f5fb115bcec0e24 # Parent 98d6c79540577a623f1ec04271ad8b3f9211c26e getgraphlogrevs: return an empty baseset instead of a empty list We aims at returning smartset only so that function higher in the stack can use smartset feature. diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py --- a/mercurial/cmdutil.py +++ b/mercurial/cmdutil.py @@ -1649,7 +1649,7 @@ def getgraphlogrevs(repo, pats, opts): revs = revset.spanset(repo) revs.reverse() if not revs: - return [], None, None + return revset.baseset(), None, None expr, filematcher = _makegraphlogrevset(repo, pats, opts, revs) if possiblyunsorted: revs.sort(reverse=True)