# HG changeset patch # User Pierre-Yves David # Date 1555578804 -7200 # Node ID 51317ce90bdc8f245ebf058d7596277be8bf8c34 # Parent 659b6f548fc1c034e016e760025495fbe4833aca topic: only affect `hg commit` behavior for repo with topic This helps repository with and without topic to coexist in the same process. diff -r 659b6f548fc1 -r 51317ce90bdc hgext3rd/topic/__init__.py --- a/hgext3rd/topic/__init__.py Thu Apr 18 11:13:14 2019 +0200 +++ b/hgext3rd/topic/__init__.py Thu Apr 18 11:13:24 2019 +0200 @@ -1122,6 +1122,8 @@ return topicmode def commitwrap(orig, ui, repo, *args, **opts): + if not hastopicext(repo): + return orig(ui, repo, *args, **opts) with repo.wlock(): topicmode = _configtopicmode(ui) ismergecommit = len(repo[None].parents()) == 2