hgext/strip.py
changeset 42470 1acaa9f37377
parent 41798 8c42b4a3d447
child 42490 3a1988e915f9
--- a/hgext/strip.py	Fri Apr 26 00:48:12 2019 +0200
+++ b/hgext/strip.py	Fri Jun 14 18:25:14 2019 +0530
@@ -50,6 +50,9 @@
     cmdutil.checkunfinished(repo)
     s = repo.status()
     if not force:
+        if len(repo[None].parents()) > 1:
+            _("outstanding uncommitted merge") #i18 tool detection
+            raise error.Abort(_("outstanding uncommitted merge"+ excsuffix))
         if s.modified or s.added or s.removed or s.deleted:
             _("local changes found") # i18n tool detection
             raise error.Abort(_("local changes found" + excsuffix))