mercurial/mergeutil.py
author Martin von Zweigbergk <martinvonz@google.com>
Thu, 24 Mar 2022 22:05:13 -0700
changeset 49091 2d519511c5c3
parent 48966 6000f5b25c9b
child 51901 f4733654f144
permissions -rw-r--r--
extensions: use new function for getting first line of string Differential Revision: https://phab.mercurial-scm.org/D12409

# mergeutil.py - help for merge processing in mercurial
#
# Copyright 2005-2007 Olivia Mackall <olivia@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 .i18n import _

from . import error


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