comparison mercurial/statichttprepo.py @ 49753:ff7134e03629

peer: have `repo.peer` take an optional `path` argument We are ready to start to actually set the value now.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Sat, 03 Dec 2022 00:16:07 +0100
parents f075a9463ee7
children 5f71fff8dc74
comparison
equal deleted inserted replaced
49752:611ccb631cbc 49753:ff7134e03629
234 return self._url 234 return self._url
235 235
236 def local(self): 236 def local(self):
237 return False 237 return False
238 238
239 def peer(self): 239 def peer(self, path=None):
240 return statichttppeer(self) 240 return statichttppeer(self, path=path)
241 241
242 def wlock(self, wait=True): 242 def wlock(self, wait=True):
243 raise error.LockUnavailable( 243 raise error.LockUnavailable(
244 0, 244 0,
245 _(b'lock not available'), 245 _(b'lock not available'),