equal
deleted
inserted
replaced
19 |
19 |
20 CB_MANIFEST_FILE = b'clonebundles.manifest' |
20 CB_MANIFEST_FILE = b'clonebundles.manifest' |
21 |
21 |
22 |
22 |
23 @attr.s |
23 @attr.s |
24 class bundlespec(object): |
24 class bundlespec: |
25 compression = attr.ib() |
25 compression = attr.ib() |
26 wirecompression = attr.ib() |
26 wirecompression = attr.ib() |
27 version = attr.ib() |
27 version = attr.ib() |
28 wireversion = attr.ib() |
28 wireversion = attr.ib() |
29 params = attr.ib() |
29 params = attr.ib() |
341 newentries.append(entry) |
341 newentries.append(entry) |
342 |
342 |
343 return newentries |
343 return newentries |
344 |
344 |
345 |
345 |
346 class clonebundleentry(object): |
346 class clonebundleentry: |
347 """Represents an item in a clone bundles manifest. |
347 """Represents an item in a clone bundles manifest. |
348 |
348 |
349 This rich class is needed to support sorting since sorted() in Python 3 |
349 This rich class is needed to support sorting since sorted() in Python 3 |
350 doesn't support ``cmp`` and our comparison is complex enough that ``key=`` |
350 doesn't support ``cmp`` and our comparison is complex enough that ``key=`` |
351 won't work. |
351 won't work. |