Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/context.py @ 35111:a9454beb9dd8
context: add obsolete() method to basefilectx
This method is now used in webutils.commonentry(), which adds common data items
(commit hash, author, date, etc) for rendering changesets in hgweb. Usually,
commonentry() is given a changectx as ctx; but in views related to files (e.g.
file view, diff, annotate) it's replaced by a filectx, so the latter also needs
to have obsolete() method.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Sat, 18 Nov 2017 11:58:57 +0800 |
parents | f7e4d6c20095 |
children | bd2743936b56 |
comparison
equal
deleted
inserted
replaced
35110:dd000a958364 | 35111:a9454beb9dd8 |
---|---|
817 return self._changectx.extra() | 817 return self._changectx.extra() |
818 def phase(self): | 818 def phase(self): |
819 return self._changectx.phase() | 819 return self._changectx.phase() |
820 def phasestr(self): | 820 def phasestr(self): |
821 return self._changectx.phasestr() | 821 return self._changectx.phasestr() |
822 def obsolete(self): | |
823 return self._changectx.obsolete() | |
822 def manifest(self): | 824 def manifest(self): |
823 return self._changectx.manifest() | 825 return self._changectx.manifest() |
824 def changectx(self): | 826 def changectx(self): |
825 return self._changectx | 827 return self._changectx |
826 def renamed(self): | 828 def renamed(self): |