Mercurial > hg
changeset 43651:aeed2f106213
subrepo: use field names instead of field numbers on scmutil.status
As part of my pytype adventures I want to make scmutil.status no longer a
subclass of tuple. This is part of that process.
Differential Revision: https://phab.mercurial-scm.org/D7403
author | Augie Fackler <augie@google.com> |
---|---|
date | Thu, 14 Nov 2019 15:28:34 -0500 |
parents | d212d657ba0e |
children | ba5c39b9324c |
files | mercurial/subrepo.py |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/subrepo.py Thu Nov 14 15:28:08 2019 -0500 +++ b/mercurial/subrepo.py Thu Nov 14 15:28:34 2019 -0500 @@ -1995,8 +1995,12 @@ if match.always(): output += self._gitcommand(cmd) + b'\n' else: - st = self.status(node2)[:3] - files = [f for sublist in st for f in sublist] + st = self.status(node2) + files = [ + f + for sublist in (st.modified, st.added, st.removed) + for f in sublist + ] for f in files: if match(f): output += self._gitcommand(cmd + [b'--', f]) + b'\n'