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

login
register
mail settings
Submitter phabricator
Date March 9, 2020, 10:03 a.m.
Message ID <66e184efc1a2aff7a61900af8b7df4db@localhost.localdomain>
Download mbox | patch
Permalink /patch/45627/
State Not Applicable
Headers show

Comments

phabricator - March 9, 2020, 10:03 a.m.
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




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

Patch

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)