hgext/remotefilelog/metadatastore.py
changeset 43506 9f70512ae2cf
parent 43117 8ff1ecfadcd1
child 47012 d55b71393907
equal deleted inserted replaced
43505:47fac1692ede 43506:9f70512ae2cf
    10 class unionmetadatastore(basestore.baseunionstore):
    10 class unionmetadatastore(basestore.baseunionstore):
    11     def __init__(self, *args, **kwargs):
    11     def __init__(self, *args, **kwargs):
    12         super(unionmetadatastore, self).__init__(*args, **kwargs)
    12         super(unionmetadatastore, self).__init__(*args, **kwargs)
    13 
    13 
    14         self.stores = args
    14         self.stores = args
    15         self.writestore = kwargs.get(r'writestore')
    15         self.writestore = kwargs.get('writestore')
    16 
    16 
    17         # If allowincomplete==True then the union store can return partial
    17         # If allowincomplete==True then the union store can return partial
    18         # ancestor lists, otherwise it will throw a KeyError if a full
    18         # ancestor lists, otherwise it will throw a KeyError if a full
    19         # history can't be found.
    19         # history can't be found.
    20         self.allowincomplete = kwargs.get(r'allowincomplete', False)
    20         self.allowincomplete = kwargs.get('allowincomplete', False)
    21 
    21 
    22     def getancestors(self, name, node, known=None):
    22     def getancestors(self, name, node, known=None):
    23         """Returns as many ancestors as we're aware of.
    23         """Returns as many ancestors as we're aware of.
    24 
    24 
    25         return value: {
    25         return value: {