(stable) merge stable
authorChristian Ebert <blacktrash@gmx.net>
Sun, 06 Jun 2010 20:19:24 +0100
branchstable
changeset 760 6d948926515b
parent 758 8ab7289402a4 (current diff)
parent 759 8cab71dc5725 (diff)
child 761 81d8da31c542
(stable) merge
--- a/hgkw/keyword.py	Sat May 22 14:10:49 2010 +0200
+++ b/hgkw/keyword.py	Sun Jun 06 20:19:24 2010 +0100
@@ -81,7 +81,6 @@
 from mercurial import commands, cmdutil, dispatch, filelog, revlog, extensions
 from mercurial import patch, localrepo, templater, templatefilters, util, match
 from mercurial.hgweb import webcommands
-from mercurial.node import nullid
 from mercurial.i18n import _
 import re, shutil, tempfile
 
@@ -285,7 +284,7 @@
 
 def _kwfwrite(ui, repo, expand, *pats, **opts):
     '''Selects files and passes them to kwtemplater.overwrite.'''
-    if repo.dirstate.parents()[1] != nullid:
+    if len(repo[None].parents()) > 1:
         raise util.Abort(_('outstanding uncommitted merge'))
     kwt = kwtools['templater']
     wlock = repo.wlock()