# HG changeset patch # User Pierre-Yves David # Date 1494414185 -7200 # Node ID f641cccbd119921de5761d6ee83527a0c8edeb1d # Parent f62ce1bbd05b972e80b821f7a47f60c0b1885b40 topic: automatically configure thg to display topic If no other config is set, we configure Tortoise-hg to display topic. This should helps usability. diff -r f62ce1bbd05b -r f641cccbd119 README --- a/README Wed May 10 13:08:45 2017 +0200 +++ b/README Wed May 10 13:03:05 2017 +0200 @@ -116,6 +116,7 @@ ------------------- - add a debugobshistory command to inspect the obs-history of a changeset + - topic: have thg display topic name if possible, 6.1.1 - in progress ------------------- diff -r f62ce1bbd05b -r f641cccbd119 hgext3rd/topic/__init__.py --- a/hgext3rd/topic/__init__.py Wed May 10 13:08:45 2017 +0200 +++ b/hgext3rd/topic/__init__.py Wed May 10 13:03:05 2017 +0200 @@ -157,6 +157,10 @@ if not isinstance(repo, localrepo.localrepository): return # this can be a peer in the ssh case (puzzling) + if repo.ui.config('experimental', 'thg.displaynames', None) is None: + repo.ui.setconfig('experimental', 'thg.displaynames', 'topics', + source='topic-extension') + class topicrepo(repo.__class__): def _restrictcapabilities(self, caps):