changeset 4539:91628e5c0f6d stable

topic: only wrap desthistedit for repo with topic This helps repository with and without topic to coexist in the same process.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 18 Apr 2019 12:41:41 +0200
parents 31c1645ef8bf
children 22cde12d9467
files hgext3rd/topic/destination.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/hgext3rd/topic/destination.py	Thu Apr 18 12:40:53 2019 +0200
+++ b/hgext3rd/topic/destination.py	Thu Apr 18 12:41:41 2019 +0200
@@ -78,6 +78,8 @@
     return node, movemark, None
 
 def desthistedit(orig, ui, repo):
+    if not common.hastopicext(repo):
+        return None
     if not (ui.config('histedit', 'defaultrev', None) is None
             and repo.currenttopic):
         return orig(ui, repo)