# HG changeset patch # User Pierre-Yves David # Date 1555578794 -7200 # Node ID 659b6f548fc1c034e016e760025495fbe4833aca # Parent 1d1f8f56daacff64f58471b3d999af53d69ea827 topic: only wrap workingctx.__init__ for repo with topic This helps repository with and without topic to coexist in the same process. diff -r 1d1f8f56daac -r 659b6f548fc1 hgext3rd/topic/__init__.py --- a/hgext3rd/topic/__init__.py Thu Apr 18 11:12:58 2019 +0200 +++ b/hgext3rd/topic/__init__.py Thu Apr 18 11:13:14 2019 +0200 @@ -565,6 +565,8 @@ def wrapinit(orig, self, repo, *args, **kwargs): orig(self, repo, *args, **kwargs) + if not hastopicext(repo): + return if constants.extrakey not in self._extra: if getattr(repo, 'currenttopic', ''): self._extra[constants.extrakey] = repo.currenttopic