comparison hgext/remotefilelog/contentstore.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 fdeb4c1d23d5
comparison
equal deleted inserted replaced
40609:ee9981bc8b44 40610:13d4ad8d7801
34 class unioncontentstore(basestore.baseunionstore): 34 class unioncontentstore(basestore.baseunionstore):
35 def __init__(self, *args, **kwargs): 35 def __init__(self, *args, **kwargs):
36 super(unioncontentstore, self).__init__(*args, **kwargs) 36 super(unioncontentstore, self).__init__(*args, **kwargs)
37 37
38 self.stores = args 38 self.stores = args
39 self.writestore = kwargs.get('writestore') 39 self.writestore = kwargs.get(r'writestore')
40 40
41 # If allowincomplete==True then the union store can return partial 41 # If allowincomplete==True then the union store can return partial
42 # delta chains, otherwise it will throw a KeyError if a full 42 # delta chains, otherwise it will throw a KeyError if a full
43 # deltachain can't be found. 43 # deltachain can't be found.
44 self.allowincomplete = kwargs.get('allowincomplete', False) 44 self.allowincomplete = kwargs.get(r'allowincomplete', False)
45 45
46 def get(self, name, node): 46 def get(self, name, node):
47 """Fetches the full text revision contents of the given name+node pair. 47 """Fetches the full text revision contents of the given name+node pair.
48 If the full text doesn't exist, throws a KeyError. 48 If the full text doesn't exist, throws a KeyError.
49 49