hgext3rd/topic/__init__.py
changeset 5193 a4d081923c81
parent 5183 9ac6779d608c
child 5203 034d6d0efa7d
--- a/hgext3rd/topic/__init__.py	Tue Mar 10 19:04:33 2020 +0700
+++ b/hgext3rd/topic/__init__.py	Tue Mar 10 19:05:08 2020 +0700
@@ -481,7 +481,7 @@
 
             reporef = weakref.ref(self)
             if self.ui.configbool(b'experimental', b'enforce-single-head'):
-                if util.safehasattr(tr, 'validator'): # hg <= 4.7
+                if util.safehasattr(tr, 'validator'): # hg <= 4.7 (ebbba3ba3f66)
                     origvalidator = tr.validator
                 else:
                     origvalidator = tr._validator
@@ -491,7 +491,7 @@
                     flow.enforcesinglehead(repo, tr2)
                     origvalidator(tr2)
 
-                if util.safehasattr(tr, 'validator'): # hg <= 4.7
+                if util.safehasattr(tr, 'validator'): # hg <= 4.7 (ebbba3ba3f66)
                     tr.validator = validator
                 else:
                     tr._validator = validator
@@ -500,7 +500,7 @@
                                              b'topic-mode.server', b'ignore')
             ispush = (desc.startswith(b'push') or desc.startswith(b'serve'))
             if (topicmodeserver != b'ignore' and ispush):
-                if util.safehasattr(tr, 'validator'): # hg <= 4.7
+                if util.safehasattr(tr, 'validator'): # hg <= 4.7 (ebbba3ba3f66)
                     origvalidator = tr.validator
                 else:
                     origvalidator = tr._validator
@@ -509,7 +509,7 @@
                     repo = reporef()
                     flow.rejectuntopicedchangeset(repo, tr2)
                     return origvalidator(tr2)
-                if util.safehasattr(tr, 'validator'): # hg <= 4.7
+                if util.safehasattr(tr, 'validator'): # hg <= 4.7 (ebbba3ba3f66)
                     tr.validator = validator
                 else:
                     tr._validator = validator
@@ -531,7 +531,7 @@
                                                b'topic.allow-publish',
                                                True)
             if not allow_publish:
-                if util.safehasattr(tr, 'validator'): # hg <= 4.7
+                if util.safehasattr(tr, 'validator'): # hg <= 4.7 (ebbba3ba3f66)
                     origvalidator = tr.validator
                 else:
                     origvalidator = tr._validator
@@ -540,7 +540,7 @@
                     repo = reporef()
                     flow.reject_publish(repo, tr2)
                     return origvalidator(tr2)
-                if util.safehasattr(tr, 'validator'): # hg <= 4.7
+                if util.safehasattr(tr, 'validator'): # hg <= 4.7 (ebbba3ba3f66)
                     tr.validator = validator
                 else:
                     tr._validator = validator