Commit ee242f4a authored by Anton Shestakov's avatar Anton Shestakov
Browse files

topic: compatibility for branchcache having a repo argument in 5.8

parent bdda94ea2195
Pipeline #20981 failed with stage
in 4 minutes and 44 seconds
......@@ -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
......
......@@ -173,8 +173,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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment