changeset 43651 | aeed2f106213 |
parent 43506 | 9f70512ae2cf |
child 43787 | be8552f25cab |
--- 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'