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

login
register
mail settings
Submitter Sean Farley
Date Sept. 5, 2013, 8:07 p.m.
Message ID <7fa9dbb4d6ea9ac15c8e.1378411620@laptop.local>
Download mbox | patch
Permalink /patch/2344/
State Accepted
Commit 0af73d7869a684888b1aa401baaf976358e4446c
Headers show

Comments

Sean Farley - Sept. 5, 2013, 8:07 p.m.
# HG changeset patch
# User Sean Farley <sean.michael.farley@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

Patch

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: