Patchwork [04,of,48,RFC] workingfilectx: remove __str__ manifest since it is now inherited

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

Comments

Sean Farley - Sept. 5, 2013, 8:06 p.m.
# HG changeset patch
# User Sean Farley <sean.michael.farley@gmail.com>
# Date 1376591527 18000
#      Thu Aug 15 13:32:07 2013 -0500
# Node ID c65bfd326104702a81c1f3fc90e013bde9ed9781
# Parent  242d2cb12423330b4ef6d8c26a5b1efa69d7fbae
workingfilectx: remove __str__ manifest since it is now inherited

Patch

diff --git a/mercurial/context.py b/mercurial/context.py
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -1202,13 +1202,10 @@ 
         return workingctx(self._repo)
 
     def __nonzero__(self):
         return True
 
-    def __str__(self):
-        return "%s@%s" % (self.path(), self._changectx)
-
     def __repr__(self):
         return "<workingfilectx %s>" % str(self)
 
     def data(self):
         return self._repo.wread(self._path)