# HG changeset patch # User Augie Fackler # Date 2018-10-14 15:05:41 # Node ID af2306bf7d5de7a09ec8e30193b80c96240af9cb # Parent b929bce413f4078907dd74b8a15d27bcaa9567b5 context: raise runtime errors with sysstrs We should probably *not* use RuntimeError for this, but let's deal with that later, rather than as part of the Python 3 effort. Differential Revision: https://phab.mercurial-scm.org/D5108 diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -2337,11 +2337,11 @@ class metadataonlyctx(committablectx): # manifests of our commit parents mp1, mp2 = self.manifestctx().parents if p1 != nullid and p1.manifestnode() != mp1: - raise RuntimeError('can\'t reuse the manifest: ' - 'its p1 doesn\'t match the new ctx p1') + raise RuntimeError(r"can't reuse the manifest: its p1 " + r"doesn't match the new ctx p1") if p2 != nullid and p2.manifestnode() != mp2: - raise RuntimeError('can\'t reuse the manifest: ' - 'its p2 doesn\'t match the new ctx p2') + raise RuntimeError(r"can't reuse the manifest: " + r"its p2 doesn't match the new ctx p2") self._files = originalctx.files() self.substate = {}