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

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


# HG changeset patch
# User Sean Farley <sean.michael.farley at 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

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)


More information about the Mercurial-devel mailing list