Mercurial > public > mercurial-scm > hg
comparison mercurial/exchange.py @ 51858:607e94e01851
format: add many "missing" comma
Black was not adding them until the next changeset introduced a bunch of `from
__future__ import annotations` to most file. Since it make the next changeset
hard to read we introduce them in advance.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Mon, 16 Sep 2024 15:36:38 +0200 |
parents | 2f8e7e384178 |
children | f4733654f144 |
comparison
equal
deleted
inserted
replaced
51857:f81e0ce5103a | 51858:607e94e01851 |
---|---|
447 force, | 447 force, |
448 revs, | 448 revs, |
449 newbranch, | 449 newbranch, |
450 bookmarks, | 450 bookmarks, |
451 publish, | 451 publish, |
452 **pycompat.strkwargs(opargs) | 452 **pycompat.strkwargs(opargs), |
453 ) | 453 ) |
454 if pushop.remote.local(): | 454 if pushop.remote.local(): |
455 missing = ( | 455 missing = ( |
456 set(pushop.repo.requirements) - pushop.remote.local().supported | 456 set(pushop.repo.requirements) - pushop.remote.local().supported |
457 ) | 457 ) |
1715 bookmarks=bookmarks, | 1715 bookmarks=bookmarks, |
1716 streamclonerequested=streamclonerequested, | 1716 streamclonerequested=streamclonerequested, |
1717 includepats=includepats, | 1717 includepats=includepats, |
1718 excludepats=excludepats, | 1718 excludepats=excludepats, |
1719 depth=depth, | 1719 depth=depth, |
1720 **pycompat.strkwargs(opargs) | 1720 **pycompat.strkwargs(opargs), |
1721 ) | 1721 ) |
1722 | 1722 |
1723 peerlocal = pullop.remote.local() | 1723 peerlocal = pullop.remote.local() |
1724 if peerlocal: | 1724 if peerlocal: |
1725 missing = set(peerlocal.requirements) - pullop.repo.supported | 1725 missing = set(peerlocal.requirements) - pullop.repo.supported |
2418 source, | 2418 source, |
2419 heads=None, | 2419 heads=None, |
2420 common=None, | 2420 common=None, |
2421 bundlecaps=None, | 2421 bundlecaps=None, |
2422 remote_sidedata=None, | 2422 remote_sidedata=None, |
2423 **kwargs | 2423 **kwargs, |
2424 ): | 2424 ): |
2425 """Return chunks constituting a bundle's raw data. | 2425 """Return chunks constituting a bundle's raw data. |
2426 | 2426 |
2427 Could be a bundle HG10 or a bundle HG20 depending on bundlecaps | 2427 Could be a bundle HG10 or a bundle HG20 depending on bundlecaps |
2428 passed. | 2428 passed. |
2478 repo, | 2478 repo, |
2479 source, | 2479 source, |
2480 bundlecaps=bundlecaps, | 2480 bundlecaps=bundlecaps, |
2481 b2caps=b2caps, | 2481 b2caps=b2caps, |
2482 remote_sidedata=remote_sidedata, | 2482 remote_sidedata=remote_sidedata, |
2483 **pycompat.strkwargs(kwargs) | 2483 **pycompat.strkwargs(kwargs), |
2484 ) | 2484 ) |
2485 | 2485 |
2486 info[b'prefercompressed'] = bundler.prefercompressed | 2486 info[b'prefercompressed'] = bundler.prefercompressed |
2487 | 2487 |
2488 return info, bundler.getchunks() | 2488 return info, bundler.getchunks() |
2501 bundlecaps=None, | 2501 bundlecaps=None, |
2502 b2caps=None, | 2502 b2caps=None, |
2503 heads=None, | 2503 heads=None, |
2504 common=None, | 2504 common=None, |
2505 remote_sidedata=None, | 2505 remote_sidedata=None, |
2506 **kwargs | 2506 **kwargs, |
2507 ): | 2507 ): |
2508 """add a changegroup part to the requested bundle""" | 2508 """add a changegroup part to the requested bundle""" |
2509 if not kwargs.get('cg', True) or not b2caps: | 2509 if not kwargs.get('cg', True) or not b2caps: |
2510 return | 2510 return |
2511 | 2511 |
2667 source, | 2667 source, |
2668 bundlecaps=None, | 2668 bundlecaps=None, |
2669 b2caps=None, | 2669 b2caps=None, |
2670 heads=None, | 2670 heads=None, |
2671 common=None, | 2671 common=None, |
2672 **kwargs | 2672 **kwargs, |
2673 ): | 2673 ): |
2674 """Transfer the .hgtags filenodes mapping. | 2674 """Transfer the .hgtags filenodes mapping. |
2675 | 2675 |
2676 Only values for heads in this bundle will be transferred. | 2676 Only values for heads in this bundle will be transferred. |
2677 | 2677 |
2695 source, | 2695 source, |
2696 bundlecaps=None, | 2696 bundlecaps=None, |
2697 b2caps=None, | 2697 b2caps=None, |
2698 heads=None, | 2698 heads=None, |
2699 common=None, | 2699 common=None, |
2700 **kwargs | 2700 **kwargs, |
2701 ): | 2701 ): |
2702 """Transfer the rev-branch-cache mapping | 2702 """Transfer the rev-branch-cache mapping |
2703 | 2703 |
2704 The payload is a series of data related to each branch | 2704 The payload is a series of data related to each branch |
2705 | 2705 |