changeset 24209:6944b64cc28d

subrepo: explicitly request clean and unknown files in status for git's add No behavior changes here since gitsubrepo.status() doesn't currently populate clean, and ignores whether unknown files were actually requested. But this is in line with other calls to status, and should avoid future surprises.
author Matt Harbison <matt_harbison@yahoo.com>
date Tue, 03 Mar 2015 21:17:29 -0500
parents e6b0de02a02e
children 99362821b25b
files mercurial/subrepo.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/subrepo.py	Sun Mar 01 18:35:29 2015 -0500
+++ b/mercurial/subrepo.py	Tue Mar 03 21:17:29 2015 -0500
@@ -1528,7 +1528,8 @@
             return []
 
         (modified, added, removed,
-         deleted, unknown, ignored, clean) = self.status(None)
+         deleted, unknown, ignored, clean) = self.status(None, unknown=True,
+                                                         clean=True)
 
         tracked = set()
         # dirstates 'amn' warn, 'r' is added again