[PATCH 06 of 48 RFC] workingfilectx: remove unneeded __repr__ since it is now inherited

Sean Farley sean.michael.farley at gmail.com
Thu Sep 5 15:07:00 CDT 2013


# HG changeset patch
# User Sean Farley <sean.michael.farley at gmail.com>
# Date 1376505176 18000
#      Wed Aug 14 13:32:56 2013 -0500
# Node ID 7fa9dbb4d6ea9ac15c8ec0e9631bc9f626034a34
# Parent  1b81e429039f57f8f1709580189db5ed0c8c6e04
workingfilectx: remove unneeded __repr__ since it is now inherited

diff --git a/mercurial/context.py b/mercurial/context.py
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -1200,13 +1200,10 @@
         return workingctx(self._repo)
 
     def __nonzero__(self):
         return True
 
-    def __repr__(self):
-        return "<workingfilectx %s>" % str(self)
-
     def data(self):
         return self._repo.wread(self._path)
     def renamed(self):
         rp = self._repo.dirstate.copied(self._path)
         if not rp:


More information about the Mercurial-devel mailing list