felipec / git-remote-hg

Transparent bidirectional bridge between Git and Mercurial for Git
GNU General Public License v2.0
369 stars 87 forks source link

SyntaxWarning about regexes #94

Closed rotu closed 8 months ago

rotu commented 1 year ago

When I cloned a hg repo, I saw these warnings:

/opt/homebrew/bin/git-remote-hg:76: SyntaxWarning: invalid escape sequence '\w'
  RAW_AUTHOR_RE = re.compile('^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)')
/opt/homebrew/bin/git-remote-hg:281: SyntaxWarning: invalid escape sequence '\('
  m = re.match('^(.+?) ext:\((.+)\)$', name)