D8254: nodemap: fix missing r-prefix on regular expression

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Mon Mar 9 10:03:20 UTC 2020


Closed by commit rHG50b570f04abb: nodemap: fix missing r-prefix on regular expression (authored by durin42).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D8254?vs=20569&id=20617

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D8254/new/

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

AFFECTED FILES
  mercurial/revlogutils/nodemap.py

CHANGE DETAILS

diff --git a/mercurial/revlogutils/nodemap.py b/mercurial/revlogutils/nodemap.py
--- a/mercurial/revlogutils/nodemap.py
+++ b/mercurial/revlogutils/nodemap.py
@@ -275,7 +275,7 @@
 
 def _other_rawdata_filepath(revlog, docket):
     prefix = revlog.nodemap_file[:-2]
-    pattern = re.compile(b"(^|/)%s-[0-9a-f]+\.nd$" % prefix)
+    pattern = re.compile(br"(^|/)%s-[0-9a-f]+\.nd$" % prefix)
     new_file_path = _rawdata_filepath(revlog, docket)
     new_file_name = revlog.opener.basename(new_file_path)
     dirpath = revlog.opener.dirname(new_file_path)



To: durin42, #hg-reviewers, marmoute, pulkit
Cc: martinvonz, marmoute, mercurial-devel


More information about the Mercurial-devel mailing list