mercurial/commands.py
changeset 36850 ff541b8cdee0
parent 36742 390d16ea7c76
child 36945 45bfcd16f27e
--- a/mercurial/commands.py	Sat Mar 10 22:02:58 2018 -0500
+++ b/mercurial/commands.py	Fri Mar 09 15:57:16 2018 +0100
@@ -2181,10 +2181,10 @@
                 raise
             cmdutil.wrongtooltocontinue(repo, _('graft'))
     else:
+        if not revs:
+            raise error.Abort(_('no revisions specified'))
         cmdutil.checkunfinished(repo)
         cmdutil.bailifchanged(repo)
-        if not revs:
-            raise error.Abort(_('no revisions specified'))
         revs = scmutil.revrange(repo, revs)
 
     skipped = set()