hgkw/keyword.py
branchstable
changeset 465 2f017ca736ce
parent 463 55f535bc13bc
child 466 ddb8a222249b
--- a/hgkw/keyword.py	Thu Jun 12 11:10:04 2008 +0200
+++ b/hgkw/keyword.py	Thu Jun 12 02:27:06 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()