##// END OF EJS Templates
context: make sure __str__ works, also when there is no _changectx...
Mads Kiilerich -
r30270:e25ce44f default
parent child Browse files
Show More
@@ -709,7 +709,10 b' class basefilectx(object):'
709 709 return False
710 710
711 711 def __str__(self):
712 return "%s@%s" % (self.path(), self._changectx)
712 try:
713 return "%s@%s" % (self.path(), self._changectx)
714 except error.LookupError:
715 return "%s@???" % self.path()
713 716
714 717 def __repr__(self):
715 718 return "<%s %s>" % (type(self).__name__, str(self))
General Comments 0
You need to be logged in to leave comments. Login now