hgkw/keyword.py
changeset 457 5e2be38cb3dd
parent 456 47bbe7c2fa7d
child 460 d9aae4cd69be
--- a/hgkw/keyword.py	Sun Jun 01 13:35:12 2008 +0200
+++ b/hgkw/keyword.py	Fri Jun 06 17:08:56 2008 +0200
@@ -265,11 +265,13 @@
 
 def _kwfwrite(ui, repo, expand, *pats, **opts):
     '''Selects files and passes them to kwtemplater.overwrite.'''
+    if repo.dirstate.parents()[1] != nullid:
+        raise util.Abort(_('outstanding uncommitted merge'))
     kwt = kwtools['templater']
     status = _status(ui, repo, kwt, *pats, **opts)
     modified, added, removed, deleted, unknown, ignored, clean = status
     if modified or added or removed or deleted:
-        raise util.Abort(_('outstanding uncommitted changes in given files'))
+        raise util.Abort(_('outstanding uncommitted changes'))
     wlock = lock = None
     try:
         wlock = repo.wlock()