git-remote-hg
git-remote-hg copied to clipboard
SyntaxWarning about regexes
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)