mercurial/commands.py
branchstable
changeset 13134 ea3c93b53fdb
parent 13065 de4a18cbfc98
child 13135 1c1ca9d393f4
--- a/mercurial/commands.py	Mon Dec 13 21:20:30 2010 -0600
+++ b/mercurial/commands.py	Tue Dec 07 08:02:54 2010 +0100
@@ -3712,9 +3712,8 @@
             if n in repo.tags():
                 raise util.Abort(_('tag \'%s\' already exists '
                                    '(use -f to force)') % n)
-    if not rev_ and repo.dirstate.parents()[1] != nullid:
-        raise util.Abort(_('uncommitted merge - please provide a '
-                           'specific revision'))
+    if not opts.get('local') and repo.dirstate.parents()[1] != nullid:
+        raise util.Abort(_('uncommitted merge'))
     r = repo[rev_].node()
 
     if not message: