##// END OF EJS Templates
context: add __repr__ methods to workingfilectx and workingctx
Nicolas Dumazet -
r12947:4832717a default
parent child Browse files
Show More
@@ -603,6 +603,9 b' class workingctx(changectx):'
603 603 def __str__(self):
604 604 return str(self._parents[0]) + "+"
605 605
606 def __repr__(self):
607 return "<workingctx %s>" % str(self)
608
606 609 def __nonzero__(self):
607 610 return True
608 611
@@ -897,6 +900,9 b' class workingfilectx(filectx):'
897 900 def __str__(self):
898 901 return "%s@%s" % (self.path(), self._changectx)
899 902
903 def __repr__(self):
904 return "<workingfilectx %s>" % str(self)
905
900 906 def data(self):
901 907 return self._repo.wread(self._path)
902 908 def renamed(self):
General Comments 0
You need to be logged in to leave comments. Login now