mercurial/commands.py
branchstable
changeset 27911 645e78845383
parent 27899 78b9fdb844c1
child 27912 ae4e6b80f084
--- a/mercurial/commands.py	Sun Jan 17 20:37:29 2016 -0800
+++ b/mercurial/commands.py	Tue Jan 19 13:43:50 2016 -0800
@@ -1328,7 +1328,10 @@
     """
     revs = None
     if 'rev' in opts:
-        revs = scmutil.revrange(repo, opts['rev'])
+        revstrings = opts['rev']
+        revs = scmutil.revrange(repo, revstrings)
+        if revstrings and not revs:
+            raise error.Abort(_('no commits to bundle'))
 
     bundletype = opts.get('type', 'bzip2').lower()
     try: