changeset 11281:b724b8467b82

walkchangerevs: allow empty query sets
author Matt Mackall <mpm@selenic.com>
date Thu, 03 Jun 2010 18:00:15 -0500
parents a5eb0bf7e158
children e581f3acc338
files mercurial/cmdutil.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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 = {}