Patchwork [01,of,48,RFC] workingctx: remove unneeded __repr__ since it is now inherited

login
register
mail settings
Submitter Sean Farley
Date Sept. 5, 2013, 8:06 p.m.
Message ID <7174735f6e2e1c63b781.1378411615@laptop.local>
Download mbox | patch
Permalink /patch/2339/
State Accepted
Commit f354e5cdb7889d93cde291f8b9abda82eb7252d7
Headers show

Comments

Sean Farley - Sept. 5, 2013, 8:06 p.m.
# HG changeset patch
# User Sean Farley <sean.michael.farley@gmail.com>
# Date 1376505164 18000
#      Wed Aug 14 13:32:44 2013 -0500
# Node ID 7174735f6e2e1c63b7816aa63575825cb8d71cd2
# Parent  5e1083447f7f4193b68123cbca3f8c54a8501d6b
workingctx: remove unneeded __repr__ since it is now inherited

Patch

diff --git a/mercurial/context.py b/mercurial/context.py
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -863,13 +863,10 @@ 
             self._extra['branch'] = 'default'
 
     def __str__(self):
         return str(self._parents[0]) + "+"
 
-    def __repr__(self):
-        return "<workingctx %s>" % str(self)
-
     def __nonzero__(self):
         return True
 
     def __contains__(self, key):
         return self._repo.dirstate[key] not in "?r"