Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/cmdutil.py @ 51749:493034cc3265
black: format the codebase with 23.3.0
The CI has moved to 23.3.0, which is the last version that supports 3.7
at runtime, so we should honor this change.
# skip-blame mass-reformating only
author | Rapha?l Gom?s <rgomes@octobus.net> |
---|---|
date | Thu, 18 Jul 2024 12:36:12 +0200 |
parents | 15e680a44502 |
children | 7f0cb9ee0534 |
comparison
equal
deleted
inserted
replaced
51748:39e2b2d062c1 | 51749:493034cc3265 |
---|---|
3831 else: | 3831 else: |
3832 diff = patch.diff(repo, ctx.node(), None, m, opts=diffopts) | 3832 diff = patch.diff(repo, ctx.node(), None, m, opts=diffopts) |
3833 original_headers = patch.parsepatch(diff) | 3833 original_headers = patch.parsepatch(diff) |
3834 | 3834 |
3835 try: | 3835 try: |
3836 | |
3837 chunks, opts = recordfilter( | 3836 chunks, opts = recordfilter( |
3838 repo.ui, original_headers, match, operation=operation | 3837 repo.ui, original_headers, match, operation=operation |
3839 ) | 3838 ) |
3840 if operation == b'discard': | 3839 if operation == b'discard': |
3841 chunks = patch.reversehunks(chunks) | 3840 chunks = patch.reversehunks(chunks) |