mercurial/mergeutil.py
author Gregory Szorc <gregory.szorc@gmail.com>
Sun, 24 Jan 2021 18:24:11 -0800
branchstable
changeset 46353 a6c5ec6b4728
parent 45916 fa87536d3d70
child 46361 dfca84970da8
permissions -rw-r--r--
contrib: update PyOxidizer to 0.10.3 This is necessary to work around a bug that caused build failures on current stable with 0.9.0. This patch was used to build the 5.7rc0 Windows installers. Differential Revision: https://phab.mercurial-scm.org/D9858

# mergeutil.py - help for merge processing in mercurial
#
# Copyright 2005-2007 Matt Mackall <mpm@selenic.com>
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2 or any later version.

from __future__ import absolute_import

from .i18n import _

from . import error


def checkunresolved(ms):
    if list(ms.unresolved()):
        raise error.StateError(
            _(b"unresolved merge conflicts (see 'hg help resolve')")
        )