comparison mercurial/subrepo.py @ 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 932de135041f
children 99362821b25b
comparison
equal deleted inserted replaced
24208:e6b0de02a02e 24209:6944b64cc28d
1526 def add(self, ui, match, prefix, explicitonly, **opts): 1526 def add(self, ui, match, prefix, explicitonly, **opts):
1527 if self._gitmissing(): 1527 if self._gitmissing():
1528 return [] 1528 return []
1529 1529
1530 (modified, added, removed, 1530 (modified, added, removed,
1531 deleted, unknown, ignored, clean) = self.status(None) 1531 deleted, unknown, ignored, clean) = self.status(None, unknown=True,
1532 clean=True)
1532 1533
1533 tracked = set() 1534 tracked = set()
1534 # dirstates 'amn' warn, 'r' is added again 1535 # dirstates 'amn' warn, 'r' is added again
1535 for l in (modified, added, deleted, clean): 1536 for l in (modified, added, deleted, clean):
1536 tracked.update(l) 1537 tracked.update(l)