Mercurial > evolve
diff hgext3rd/serverminitopic.py @ 5901:8bd3348c4150 mercurial-4.7
test-compat: merge mercurial-4.8 into mercurial-4.7
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Sun, 25 Apr 2021 13:21:56 +0800 |
parents | ee242f4a2d73 |
children | 1b57516a9a56 |
line wrap: on
line diff
--- a/hgext3rd/serverminitopic.py Thu Mar 11 14:48:12 2021 +0800 +++ b/hgext3rd/serverminitopic.py Sun Apr 25 13:21:56 2021 +0800 @@ -167,8 +167,12 @@ else: # hg <= 4.9 (624d6683c705+b137a6793c51) _entries = self - new = self.__class__(_entries, self.tipnode, self.tiprev, - self.filteredhash, self._closednodes) + args = (_entries, self.tipnode, self.tiprev, self.filteredhash, + self._closednodes) + if util.safehasattr(self, '_repo'): + # hg <= 5.7 (6266d19556ad) + args = (self._repo,) + args + new = self.__class__(*args) new.phaseshash = self.phaseshash return new