diff hgext3rd/serverminitopic.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 515d425c0a05
children 2c5e4339538a
line wrap: on
line diff
--- a/hgext3rd/serverminitopic.py	Tue Mar 10 19:04:33 2020 +0700
+++ b/hgext3rd/serverminitopic.py	Tue Mar 10 19:05:08 2020 +0700
@@ -158,7 +158,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)
@@ -232,10 +232,10 @@
 def uisetup(ui):
     wrapclass(branchmap, 'branchcache', _topiccache)
     try:
-        # Mercurial 4.8 and older
+        # hg <= 4.9 (3461814417f3)
         extensions.wrapfunction(branchmap, 'read', wrapread)
     except AttributeError:
-        # Mercurial 4.9; branchcache.fromfile now takes care of this
+        # Mercurial 5.0; branchcache.fromfile now takes care of this
         # which is alredy defined on _topiccache
         pass
     extensions.wrapfunction(wireprotov1server, '_capabilities', wireprotocaps)