Mercurial > hg
comparison hgext/remotefilelog/repack.py @ 48946:642e31cb55f0
py3: use class X: instead of class X(object):
The inheritance from object is implied in Python 3. So this should
be equivalent.
This change was generated via an automated search and replace. So there
may have been some accidental changes.
Differential Revision: https://phab.mercurial-scm.org/D12352
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Mon, 21 Feb 2022 13:08:28 -0700 |
parents | 2cce2fa5bcf7 |
children | d44e3c45f0e4 |
comparison
equal
deleted
inserted
replaced
48945:55d132525155 | 48946:642e31cb55f0 |
---|---|
496 keepkeys.add(keyfn(filename, filenode)) | 496 keepkeys.add(keyfn(filename, filenode)) |
497 | 497 |
498 return keepkeys | 498 return keepkeys |
499 | 499 |
500 | 500 |
501 class repacker(object): | 501 class repacker: |
502 """Class for orchestrating the repack of data and history information into a | 502 """Class for orchestrating the repack of data and history information into a |
503 new format. | 503 new format. |
504 """ | 504 """ |
505 | 505 |
506 def __init__( | 506 def __init__( |
817 | 817 |
818 sortednodes = shallowutil.sortnodes(ancestors.keys(), parentfunc) | 818 sortednodes = shallowutil.sortnodes(ancestors.keys(), parentfunc) |
819 return sortednodes | 819 return sortednodes |
820 | 820 |
821 | 821 |
822 class repackledger(object): | 822 class repackledger: |
823 """Storage for all the bookkeeping that happens during a repack. It contains | 823 """Storage for all the bookkeeping that happens during a repack. It contains |
824 the list of revisions being repacked, what happened to each revision, and | 824 the list of revisions being repacked, what happened to each revision, and |
825 which source store contained which revision originally (for later cleanup). | 825 which source store contained which revision originally (for later cleanup). |
826 """ | 826 """ |
827 | 827 |
865 | 865 |
866 def addcreated(self, value): | 866 def addcreated(self, value): |
867 self.created.add(value) | 867 self.created.add(value) |
868 | 868 |
869 | 869 |
870 class repackentry(object): | 870 class repackentry: |
871 """Simple class representing a single revision entry in the repackledger.""" | 871 """Simple class representing a single revision entry in the repackledger.""" |
872 | 872 |
873 __slots__ = ( | 873 __slots__ = ( |
874 'filename', | 874 'filename', |
875 'node', | 875 'node', |