##// END OF EJS Templates
commitablectx: move __str__ from workingctx
Sean Farley -
r19666:09459edf default
parent child Browse files
Show More
@@ -856,6 +856,9 b' class commitablectx(basectx):'
856 856 if self._extra['branch'] == '':
857 857 self._extra['branch'] = 'default'
858 858
859 def __str__(self):
860 return str(self._parents[0]) + "+"
861
859 862 class workingctx(commitablectx):
860 863 """A workingctx object makes access to data related to
861 864 the current working directory convenient.
@@ -869,9 +872,6 b' class workingctx(commitablectx):'
869 872 changes=None):
870 873 super(workingctx, self).__init__(repo, text, user, date, extra, changes)
871 874
872 def __str__(self):
873 return str(self._parents[0]) + "+"
874
875 875 def __nonzero__(self):
876 876 return True
877 877
General Comments 0
You need to be logged in to leave comments. Login now