subrepo: explicitly request clean and unknown files in status for git's add
authorMatt Harbison <matt_harbison@yahoo.com>
Tue, 03 Mar 2015 21:17:29 -0500
changeset 24209 6944b64cc28d
parent 24208 e6b0de02a02e
child 24210 99362821b25b
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.
mercurial/subrepo.py
--- 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