commitablectx: move __str__ from workingctx
authorSean Farley <sean.michael.farley@gmail.com>
Wed, 14 Aug 2013 15:25:14 -0500
changeset 19666 09459edfb48b
parent 19665 cb0c94ef1ebe
child 19667 40040e4015f9
commitablectx: move __str__ from workingctx
mercurial/context.py
--- a/mercurial/context.py	Wed Aug 14 15:24:58 2013 -0500
+++ b/mercurial/context.py	Wed Aug 14 15:25:14 2013 -0500
@@ -856,6 +856,9 @@
         if self._extra['branch'] == '':
             self._extra['branch'] = 'default'
 
+    def __str__(self):
+        return str(self._parents[0]) + "+"
+
 class workingctx(commitablectx):
     """A workingctx object makes access to data related to
     the current working directory convenient.
@@ -869,9 +872,6 @@
                  changes=None):
         super(workingctx, self).__init__(repo, text, user, date, extra, changes)
 
-    def __str__(self):
-        return str(self._parents[0]) + "+"
-
     def __nonzero__(self):
         return True