walkchangerevs: allow empty query sets
authorMatt Mackall <mpm@selenic.com>
Thu, 03 Jun 2010 18:00:15 -0500
changeset 11281 b724b8467b82
parent 11280 a5eb0bf7e158
child 11282 e581f3acc338
walkchangerevs: allow empty query sets
mercurial/cmdutil.py
--- a/mercurial/cmdutil.py	Thu Jun 03 17:39:40 2010 -0500
+++ b/mercurial/cmdutil.py	Thu Jun 03 18:00:15 2010 -0500
@@ -1024,6 +1024,8 @@
     else:
         defrange = '-1:0'
     revs = revrange(repo, opts['rev'] or [defrange])
+    if not revs:
+        return []
     wanted = set()
     slowpath = match.anypats() or (match.files() and opts.get('removed'))
     fncache = {}