D6968: sidedata: adjust string for python
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Fri Oct 4 21:07:32 UTC 2019
marmoute created this revision.
marmoute added a reviewer: indygreg.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
This was pointed out by Gregory Szorc: Python 3 will require a r'' because of
source transformation.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D6968
AFFECTED FILES
mercurial/revlogutils/sidedata.py
CHANGE DETAILS
diff --git a/mercurial/revlogutils/sidedata.py b/mercurial/revlogutils/sidedata.py
--- a/mercurial/revlogutils/sidedata.py
+++ b/mercurial/revlogutils/sidedata.py
@@ -49,8 +49,8 @@
SD_TEST7 = 7
# internal format constant
-SIDEDATA_HEADER = struct.Struct('>H')
-SIDEDATA_ENTRY = struct.Struct('>HL20s')
+SIDEDATA_HEADER = struct.Struct(r'>H')
+SIDEDATA_ENTRY = struct.Struct(r'>HL20s')
def sidedatawriteprocessor(rl, text, sidedata):
sidedata = list(sidedata.items())
To: marmoute, indygreg, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list