Mercurial > hg
comparison hgext/remotefilelog/metadatastore.py @ 40610:13d4ad8d7801
py3: fix keyword arguments handling in hgext/remotefilelog/
Keys of kwargs on Python 3 should be strings. This patch fixes them by appending
r'' prefixes, and using pycompat.byteskwargs() and pycompat.strkwargs().
Differential Revision: https://phab.mercurial-scm.org/D5259
author | Pulkit Goyal <pulkit@yandex-team.ru> |
---|---|
date | Tue, 13 Nov 2018 17:41:26 +0300 |
parents | 3a333a582d7b |
children | 2372284d9457 |
comparison
equal
deleted
inserted
replaced
40609:ee9981bc8b44 | 40610:13d4ad8d7801 |
---|---|
9 class unionmetadatastore(basestore.baseunionstore): | 9 class unionmetadatastore(basestore.baseunionstore): |
10 def __init__(self, *args, **kwargs): | 10 def __init__(self, *args, **kwargs): |
11 super(unionmetadatastore, self).__init__(*args, **kwargs) | 11 super(unionmetadatastore, self).__init__(*args, **kwargs) |
12 | 12 |
13 self.stores = args | 13 self.stores = args |
14 self.writestore = kwargs.get('writestore') | 14 self.writestore = kwargs.get(r'writestore') |
15 | 15 |
16 # If allowincomplete==True then the union store can return partial | 16 # If allowincomplete==True then the union store can return partial |
17 # ancestor lists, otherwise it will throw a KeyError if a full | 17 # ancestor lists, otherwise it will throw a KeyError if a full |
18 # history can't be found. | 18 # history can't be found. |
19 self.allowincomplete = kwargs.get('allowincomplete', False) | 19 self.allowincomplete = kwargs.get(r'allowincomplete', False) |
20 | 20 |
21 def getancestors(self, name, node, known=None): | 21 def getancestors(self, name, node, known=None): |
22 """Returns as many ancestors as we're aware of. | 22 """Returns as many ancestors as we're aware of. |
23 | 23 |
24 return value: { | 24 return value: { |