getgraphlogrevs: return an empty baseset instead of a empty list
authorLucas Moscovicz <lmoscovicz@fb.com>
Fri, 14 Mar 2014 13:26:40 -0700
changeset 20759 74139960c302
parent 20758 98d6c7954057
child 20760 d5fa413346e7
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.
mercurial/cmdutil.py
--- 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)