Patchwork D2222: convert: make hg sha1 regex consistently be a bytes

login
register
mail settings
Submitter phabricator
Date Feb. 13, 2018, 6:03 a.m.
Message ID <95cbb055a7051b9b4cf1a0d7d42ad71f@localhost.localdomain>
Download mbox | patch
Permalink /patch/27813/
State Not Applicable
Headers show

Comments

phabricator - Feb. 13, 2018, 6:03 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG2a28bdb63f05: convert: make hg sha1 regex consistently be a bytes (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2222?vs=5621&id=5625

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

AFFECTED FILES
  hgext/convert/hg.py

CHANGE DETAILS




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

Patch

diff --git a/hgext/convert/hg.py b/hgext/convert/hg.py
--- a/hgext/convert/hg.py
+++ b/hgext/convert/hg.py
@@ -42,7 +42,7 @@ 
 mapfile = common.mapfile
 NoRepo = common.NoRepo
 
-sha1re = re.compile(r'\b[0-9a-f]{12,40}\b')
+sha1re = re.compile(br'\b[0-9a-f]{12,40}\b')
 
 class mercurial_sink(common.converter_sink):
     def __init__(self, ui, repotype, path):