changeset 6385 | 0d4e068e9e52 |
parent 6371 | b2f1d97d10eb |
child 6407 | 12377957948d |
--- 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)