Patchwork D3724: cvsps: port changeset __repr__ to py3

login
register
mail settings
Submitter phabricator
Date June 13, 2018, 1:09 a.m.
Message ID <differential-rev-PHID-DREV-oqhbuxac3ypaketg3wp3-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/32100/
State Superseded
Headers show

Comments

phabricator - June 13, 2018, 1:09 a.m.
durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  This appears to be unused except as a debugging aid, as it didn't
  break until I added a debug print() in service of the previous
  fix. Sigh.

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  hgext/convert/cvsps.py

CHANGE DETAILS




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

Patch

diff --git a/hgext/convert/cvsps.py b/hgext/convert/cvsps.py
--- a/hgext/convert/cvsps.py
+++ b/hgext/convert/cvsps.py
@@ -51,8 +51,8 @@ 
         self.__dict__.update(entries)
 
     def __repr__(self):
-        items = ("%s=%r"%(k, self.__dict__[k]) for k in sorted(self.__dict__))
-        return "%s(%s)"%(type(self).__name__, ", ".join(items))
+        items = (r"%s=%r"%(k, self.__dict__[k]) for k in sorted(self.__dict__))
+        return r"%s(%s)"%(type(self).__name__, r", ".join(items))
 
 class logerror(Exception):
     pass