D5878: py3: make sure __repr__ returns str
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Thu Feb 7 14:07:03 UTC 2019
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
No test fails but I found it while debugging test-commit-interactive-curses.t
failure.
1. skip-blame because just r'' prefix
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D5878
AFFECTED FILES
mercurial/patch.py
CHANGE DETAILS
diff --git a/mercurial/patch.py b/mercurial/patch.py
--- a/mercurial/patch.py
+++ b/mercurial/patch.py
@@ -364,7 +364,7 @@
return self._ispatchinga(afile) and self._ispatchingb(bfile)
def __repr__(self):
- return "<patchmeta %s %r>" % (self.op, self.path)
+ return r"<patchmeta %s %r>" % (self.op, self.path)
def readgitpatch(lr):
"""extract git-style metadata about patches from <patchname>"""
To: pulkit, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list