Submitter | phabricator |
---|---|
Date | Feb. 21, 2018, 8:40 p.m. |
Message ID | <93c3afc5683f53b096f250f06f4fab2f@localhost.localdomain> |
Download | mbox | patch |
Permalink | /patch/28209/ |
State | Not Applicable |
Headers | show |
Comments
Patch
diff --git a/hgext/mq.py b/hgext/mq.py --- a/hgext/mq.py +++ b/hgext/mq.py @@ -553,10 +553,8 @@ for patchfn in patches: patchf = self.opener(patchfn, 'r') # if the patch was a git patch, refresh it as a git patch - for line in patchf: - if line.startswith('diff --git'): - diffopts.git = True - break + diffopts.git = any(line.startswith('diff --git') + for line in patchf) patchf.close() return diffopts