Mercurial > hg-stable
changeset 36376:c8891cc3fa9e
mq: don't reimplement any()
Differential Revision: https://phab.mercurial-scm.org/D2376
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Tue, 06 Feb 2018 08:57:22 -0800 |
parents | 02c35e640b3c |
children | a65502597d8d |
files | hgext/mq.py |
diffstat | 1 files changed, 2 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/mq.py Tue Feb 06 08:55:54 2018 -0800 +++ b/hgext/mq.py Tue Feb 06 08:57:22 2018 -0800 @@ -1555,12 +1555,8 @@ update = True else: parents = [p.node() for p in repo[None].parents()] - needupdate = False - for entry in self.applied[start:]: - if entry.node in parents: - needupdate = True - break - update = needupdate + update = any(entry.node in parents + for entry in self.applied[start:]) tobackup = set() if update: