changeset 20759:74139960c302

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.
author Lucas Moscovicz <lmoscovicz@fb.com>
date Fri, 14 Mar 2014 13:26:40 -0700
parents 98d6c7954057
children d5fa413346e7
files mercurial/cmdutil.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/cmdutil.py	Fri Mar 14 16:26:50 2014 -0700
+++ b/mercurial/cmdutil.py	Fri Mar 14 13:26:40 2014 -0700
@@ -1649,7 +1649,7 @@
             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)