mirror of
https://github.com/facebook/sapling.git
synced 2025-01-07 14:10:42 +03:00
basefilectx: move __str__ from filectx
This commit is contained in:
parent
7d4c1da38f
commit
6d40b2e84f
@ -455,6 +455,9 @@ class basefilectx(object):
|
||||
# file is missing
|
||||
return False
|
||||
|
||||
def __str__(self):
|
||||
return "%s@%s" % (self.path(), short(self.node()))
|
||||
|
||||
class filectx(basefilectx):
|
||||
"""A filecontext object makes access to data related to a particular
|
||||
filerevision convenient."""
|
||||
@ -504,9 +507,6 @@ class filectx(basefilectx):
|
||||
# considered when solving linkrev issue are on the table.
|
||||
return changectx(self._repo.unfiltered(), self._changeid)
|
||||
|
||||
def __str__(self):
|
||||
return "%s@%s" % (self.path(), short(self.node()))
|
||||
|
||||
def __repr__(self):
|
||||
return "<filectx %s>" % str(self)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user