Mercurial > hg-stable
changeset 43813:0f6782df1100
exchange: replace a "not x in ys" by more Pythonic "x not in ys"
Found by one of our (Google-)internal tools.
Differential Revision: https://phab.mercurial-scm.org/D7546
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Thu, 05 Dec 2019 08:59:23 -0800 |
parents | d3f7bdc905fb |
children | ebfd349eac46 |
files | mercurial/exchange.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/exchange.py Thu Dec 05 20:05:08 2019 -0800 +++ b/mercurial/exchange.py Thu Dec 05 08:59:23 2019 -0800 @@ -2577,7 +2577,7 @@ ): """add phase heads part to the requested bundle""" if kwargs.get('phases', False): - if not b2caps or not b'heads' in b2caps.get(b'phases'): + if not b2caps or b'heads' not in b2caps.get(b'phases'): raise error.Abort(_(b'no common phases exchange method')) if heads is None: heads = repo.heads()