##// END OF EJS Templates
basefilectx: move __str__ from filectx
Sean Farley -
r19579:964844d6 default
parent child Browse files
Show More
@@ -455,6 +455,9 b' class basefilectx(object):'
455 455 # file is missing
456 456 return False
457 457
458 def __str__(self):
459 return "%s@%s" % (self.path(), short(self.node()))
460
458 461 class filectx(basefilectx):
459 462 """A filecontext object makes access to data related to a particular
460 463 filerevision convenient."""
@@ -504,9 +507,6 b' class filectx(basefilectx):'
504 507 # considered when solving linkrev issue are on the table.
505 508 return changectx(self._repo.unfiltered(), self._changeid)
506 509
507 def __str__(self):
508 return "%s@%s" % (self.path(), short(self.node()))
509
510 510 def __repr__(self):
511 511 return "<filectx %s>" % str(self)
512 512
General Comments 0
You need to be logged in to leave comments. Login now