mercurial/mergeutil.py
author Anton Shestakov <av6@dwimlabs.net>
Mon, 28 Nov 2022 16:10:30 +0400
branchstable
changeset 49594 ecfc84b956a8
parent 48966 6000f5b25c9b
permissions -rw-r--r--
tests: expect the message from 1baf0fffd82f in test-hghave.t (issue6762) Couldn't reproduce locally, but apparently this message may occasionally pop up when running this test.

# 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')")
        )