diff hgext3rd/topic/topicmap.py @ 5193:a4d081923c81

compat: update hg-X.Y compat comments and test them
author Anton Shestakov <av6@dwimlabs.net>
date Tue, 10 Mar 2020 19:05:08 +0700
parents bb2b4f6c99dc
children 86736040b0ec
line wrap: on
line diff
--- a/hgext3rd/topic/topicmap.py	Tue Mar 10 19:04:33 2020 +0700
+++ b/hgext3rd/topic/topicmap.py	Tue Mar 10 19:05:08 2020 +0700
@@ -125,7 +125,7 @@
     branchmap.branchcache = topiccache
 
     try:
-        # Mercurial 4.9
+        # Mercurial 5.0
         class remotetopiccache(_topiccache, branchmap.remotebranchcache):
             pass
         branchmap.remotebranchcache = remotetopiccache
@@ -135,7 +135,7 @@
             return _wrapupdatebmcache(orig.__get__(self), repo)
         extensions.wrapfunction(branchmap.BranchMapCache, 'updatecache', _wrapupdatebmcachemethod)
     except AttributeError:
-        # Mercurial 4.8 and before
+        # hg <= 4.9 (3461814417f3)
         extensions.wrapfunction(branchmap, 'updatecache', _wrapupdatebmcache)
 
 
@@ -173,7 +173,7 @@
         if util.safehasattr(self, '_entries'):
             _entries = self._entries
         else:
-            # hg <= 4.9 (624d6683c705, b137a6793c51)
+            # hg <= 4.9 (624d6683c705+b137a6793c51)
             _entries = self
         new = self.__class__(_entries, self.tipnode, self.tiprev,
                              self.filteredhash, self._closednodes)