comparison mercurial/localrepo.py @ 45785:80f32ec8653a

clonebundle: move the manifest filename to a constant I am about to add more reference to it, so I would rather have it an explicit constant. This allow to unify various call too. Differential Revision: https://phab.mercurial-scm.org/D9209
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 14 Oct 2020 17:46:28 +0200
parents 88a47cbf063c
children 96ca817ec192
comparison
equal deleted inserted replaced
45784:74271829ddc0 45785:80f32ec8653a
29 ) 29 )
30 from . import ( 30 from . import (
31 bookmarks, 31 bookmarks,
32 branchmap, 32 branchmap,
33 bundle2, 33 bundle2,
34 bundlecaches,
34 changegroup, 35 changegroup,
35 color, 36 color,
36 commit, 37 commit,
37 context, 38 context,
38 dirstate, 39 dirstate,
297 298
298 def capabilities(self): 299 def capabilities(self):
299 return self._caps 300 return self._caps
300 301
301 def clonebundles(self): 302 def clonebundles(self):
302 return self._repo.tryread(b'clonebundles.manifest') 303 return self._repo.tryread(bundlecaches.CB_MANIFEST_FILE)
303 304
304 def debugwireargs(self, one, two, three=None, four=None, five=None): 305 def debugwireargs(self, one, two, three=None, four=None, five=None):
305 """Used to test argument passing over the wire""" 306 """Used to test argument passing over the wire"""
306 return b"%s %s %s %s %s" % ( 307 return b"%s %s %s %s %s" % (
307 one, 308 one,