hgext/remotefilelog/metadatastore.py
changeset 43117 8ff1ecfadcd1
parent 43077 687b865b95ad
child 43506 9f70512ae2cf
equal deleted inserted replaced
43116:defabf63e969 43117:8ff1ecfadcd1
    97 
    97 
    98         raise KeyError((name, hex(node)))
    98         raise KeyError((name, hex(node)))
    99 
    99 
   100     def add(self, name, node, data):
   100     def add(self, name, node, data):
   101         raise RuntimeError(
   101         raise RuntimeError(
   102             b"cannot add content only to remotefilelog " b"contentstore"
   102             b"cannot add content only to remotefilelog contentstore"
   103         )
   103         )
   104 
   104 
   105     def getmissing(self, keys):
   105     def getmissing(self, keys):
   106         missing = keys
   106         missing = keys
   107         for store in self.stores:
   107         for store in self.stores:
   134     def getnodeinfo(self, name, node):
   134     def getnodeinfo(self, name, node):
   135         return self.getancestors(name, node)[node]
   135         return self.getancestors(name, node)[node]
   136 
   136 
   137     def add(self, name, node, parents, linknode):
   137     def add(self, name, node, parents, linknode):
   138         raise RuntimeError(
   138         raise RuntimeError(
   139             b"cannot add metadata only to remotefilelog " b"metadatastore"
   139             b"cannot add metadata only to remotefilelog metadatastore"
   140         )
   140         )
   141 
   141 
   142 
   142 
   143 class remotemetadatastore(object):
   143 class remotemetadatastore(object):
   144     def __init__(self, ui, fileservice, shared):
   144     def __init__(self, ui, fileservice, shared):