comparison hgext/clonebundles.py @ 51125:4224b1aa7ad8 stable

branching: merge default into stable for 6.6rc0
author Raphaël Gomès <rgomes@octobus.net>
date Tue, 07 Nov 2023 15:21:11 +0100
parents d718eddf01d9
children f4733654f144
comparison
equal deleted inserted replaced
51117:f6bb9d1c230c 51125:4224b1aa7ad8
347 347
348 return caps 348 return caps
349 349
350 350
351 def extsetup(ui): 351 def extsetup(ui):
352 extensions.wrapfunction(wireprotov1server, b'_capabilities', capabilities) 352 extensions.wrapfunction(wireprotov1server, '_capabilities', capabilities)
353 353
354 354
355 # logic for bundle auto-generation 355 # logic for bundle auto-generation
356 356
357 357
985 return tr 985 return tr
986 986
987 @localrepo.unfilteredmethod 987 @localrepo.unfilteredmethod
988 def clonebundles_lock(self, wait=True): 988 def clonebundles_lock(self, wait=True):
989 '''Lock the repository file related to clone bundles''' 989 '''Lock the repository file related to clone bundles'''
990 if not util.safehasattr(self, '_cb_lock_ref'): 990 if not hasattr(self, '_cb_lock_ref'):
991 self._cb_lock_ref = None 991 self._cb_lock_ref = None
992 l = self._currentlock(self._cb_lock_ref) 992 l = self._currentlock(self._cb_lock_ref)
993 if l is not None: 993 if l is not None:
994 l.lock() 994 l.lock()
995 return l 995 return l