Mercurial > evolve
changeset 2656:4a148ca3e80d
topic: update the changectx method to respect phases
The topic is no longer returned once the changeset is no longer mutable (unless
explicitly requested).
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Thu, 22 Jun 2017 09:48:40 +0200 |
parents | 417490bdf28a |
children | 58719183d383 |
files | hgext3rd/topic/__init__.py |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext3rd/topic/__init__.py Fri Jun 23 10:21:37 2017 +0200 +++ b/hgext3rd/topic/__init__.py Thu Jun 22 09:48:40 2017 +0200 @@ -115,7 +115,9 @@ testedwith = '4.0.2 4.1.3 4.2' -def _contexttopic(self): +def _contexttopic(self, force=False): + if not (force or self.mutable()): + return '' return self.extra().get(constants.extrakey, '') context.basectx.topic = _contexttopic