hgext3rd/topic/discovery.py
changeset 5193 a4d081923c81
parent 5189 26b47a967a1d
child 5203 034d6d0efa7d
--- a/hgext3rd/topic/discovery.py	Tue Mar 10 19:04:33 2020 +0700
+++ b/hgext3rd/topic/discovery.py	Tue Mar 10 19:05:08 2020 +0700
@@ -157,7 +157,7 @@
         return
     tr._prepushheads = _nbheads(op.repo)
     reporef = weakref.ref(op.repo)
-    if util.safehasattr(tr, 'validator'): # hg <= 4.7
+    if util.safehasattr(tr, 'validator'): # hg <= 4.7 (ebbba3ba3f66)
         oldvalidator = tr.validator
     else:
         oldvalidator = tr._validator
@@ -178,7 +178,7 @@
                             % branch)
                     raise error.Abort(msg)
         return oldvalidator(tr)
-    if util.safehasattr(tr, 'validator'): # hg <= 4.7
+    if util.safehasattr(tr, 'validator'): # hg <= 4.7 (ebbba3ba3f66)
         tr.validator = validator
     else:
         tr._validator = validator