Mercurial > public > mercurial-scm > hg-stable
diff hgext/rebase.py @ 52663:dc36535a5edc
style: drop extraneous parentheses
These were rewritten by `pyupgrade`.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Mon, 06 Jan 2025 14:07:43 -0500 |
parents | 92dff84829b3 |
children |
line wrap: on
line diff
--- a/hgext/rebase.py Mon Jan 06 13:54:40 2025 -0500 +++ b/hgext/rebase.py Mon Jan 06 14:07:43 2025 -0500 @@ -1825,11 +1825,9 @@ # we have a more advanced merge algorithm that handles multiple bases. if l > 0: unwanteddesc = _(b' or ').join( - ( - b', '.join(b'%d:%s' % (r, repo[r]) for r in revs) - for revs in unwanted - if revs is not None - ) + b', '.join(b'%d:%s' % (r, repo[r]) for r in revs) + for revs in unwanted + if revs is not None ) raise error.InputError( _(b'rebasing %d:%s will include unwanted changes from %s') @@ -2043,7 +2041,7 @@ for rev in sorted(state): parents = [p for p in repo.changelog.parentrevs(rev) if p != nullrev] # if all parents of this revision are done, then so is this revision - if parents and all((state.get(p) == p for p in parents)): + if parents and all(state.get(p) == p for p in parents): state[rev] = rev return originalwd, destmap, state