diff -r 8bc876e03143 -r 0d4e068e9e52 mercurial/localrepo.py --- a/mercurial/localrepo.py Mon Mar 24 22:49:33 2008 +0100 +++ b/mercurial/localrepo.py Mon Mar 24 15:36:56 2008 -0700 @@ -781,6 +781,11 @@ if use_dirstate: p1, p2 = self.dirstate.parents() update_dirstate = True + + if (not force and p2 != nullid and + (files or match != util.always)): + raise util.Abort(_('cannot partially commit a merge ' + '(do not specify files or patterns)')) else: p1, p2 = p1, p2 or nullid update_dirstate = (self.dirstate.parents()[0] == p1)