diff -r 7c4e205f71ca -r 3751595ec45e mercurial/patch.py --- a/mercurial/patch.py Thu Feb 07 16:44:43 2019 +0300 +++ b/mercurial/patch.py Thu Feb 07 16:43:42 2019 +0300 @@ -363,7 +363,7 @@ return self._ispatchinga(afile) and self._ispatchingb(bfile) def __repr__(self): - return "" % (self.op, self.path) + return r"" % (self.op, self.path) def readgitpatch(lr): """extract git-style metadata about patches from """