# HG changeset patch # User Matt Harbison # Date 2015-03-04 02:17:29 # Node ID 6944b64cc28d167061632f3fb62a9f4c9b852ab2 # Parent e6b0de02a02e7fcf8369bc902edc9d0b60621586 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. diff --git a/mercurial/subrepo.py b/mercurial/subrepo.py --- a/mercurial/subrepo.py +++ b/mercurial/subrepo.py @@ -1528,7 +1528,8 @@ class gitsubrepo(abstractsubrepo): 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