D5108: context: raise runtime errors with sysstrs

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Mon Oct 15 11:22:20 EDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHGaf2306bf7d5d: context: raise runtime errors with sysstrs (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5108?vs=12140&id=12151

REVISION DETAIL
  https://phab.mercurial-scm.org/D5108

AFFECTED FILES
  mercurial/context.py

CHANGE DETAILS

diff --git a/mercurial/context.py b/mercurial/context.py
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -2337,11 +2337,11 @@
         # 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 = {}



To: durin42, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list