mercurial/statichttprepo.py
changeset 26587 56b2bcea2529
parent 25978 762f4c6df6b1
child 27705 2380889f8f52
equal deleted inserted replaced
26586:d51c658d3f04 26587:56b2bcea2529
   169 
   169 
   170     def peer(self):
   170     def peer(self):
   171         return statichttppeer(self)
   171         return statichttppeer(self)
   172 
   172 
   173     def lock(self, wait=True):
   173     def lock(self, wait=True):
   174         raise util.Abort(_('cannot lock static-http repository'))
   174         raise error.Abort(_('cannot lock static-http repository'))
   175 
   175 
   176 def instance(ui, path, create):
   176 def instance(ui, path, create):
   177     if create:
   177     if create:
   178         raise util.Abort(_('cannot create new static-http repository'))
   178         raise error.Abort(_('cannot create new static-http repository'))
   179     return statichttprepository(ui, path[7:])
   179     return statichttprepository(ui, path[7:])