comparison hgext/remotefilelog/repack.py @ 45942:89a2afe31e82

formating: upgrade to black 20.8b1 This required a couple of small tweaks to un-confuse black, but now it works. Big formatting changes come from: * Dramatically improved collection-splitting logic upstream * Black having a strong (correct IMO) opinion that """ is better than ''' Differential Revision: https://phab.mercurial-scm.org/D9430
author Augie Fackler <raf@durin42.com>
date Fri, 27 Nov 2020 17:03:29 -0500
parents 9d2b2df2c2ba
children d55b71393907
comparison
equal deleted inserted replaced
45941:346af7687c6f 45942:89a2afe31e82
52 52
53 procutil.runbgcommand(cmd, encoding.environ, ensurestart=False, **kwargs) 53 procutil.runbgcommand(cmd, encoding.environ, ensurestart=False, **kwargs)
54 54
55 55
56 def fullrepack(repo, options=None): 56 def fullrepack(repo, options=None):
57 """If ``packsonly`` is True, stores creating only loose objects are skipped. 57 """If ``packsonly`` is True, stores creating only loose objects are skipped."""
58 """
59 if util.safehasattr(repo, 'shareddatastores'): 58 if util.safehasattr(repo, 'shareddatastores'):
60 datasource = contentstore.unioncontentstore(*repo.shareddatastores) 59 datasource = contentstore.unioncontentstore(*repo.shareddatastores)
61 historysource = metadatastore.unionmetadatastore( 60 historysource = metadatastore.unionmetadatastore(
62 *repo.sharedhistorystores, allowincomplete=True 61 *repo.sharedhistorystores, allowincomplete=True
63 ) 62 )
872 def addcreated(self, value): 871 def addcreated(self, value):
873 self.created.add(value) 872 self.created.add(value)
874 873
875 874
876 class repackentry(object): 875 class repackentry(object):
877 """Simple class representing a single revision entry in the repackledger. 876 """Simple class representing a single revision entry in the repackledger."""
878 """
879 877
880 __slots__ = ( 878 __slots__ = (
881 'filename', 879 'filename',
882 'node', 880 'node',
883 'datasource', 881 'datasource',