commit: apply force flag without files

This commit is contained in:
Matt Mackall 2009-06-01 13:51:21 -05:00
parent 6f44115342
commit c22dd49465

View File

@ -801,7 +801,9 @@ class localrepository(repo.repository):
self.ui.warn(_("%s not tracked!\n") % f)
changes = [modified, [], removed, [], []]
else:
changes = self.status(match=match)
changes = self.status(match=match, clean=force)
if force:
changes[0].extend(changes[6])
if (not force and not extra.get("close") and p2 == nullid
and not (changes[0] or changes[1] or changes[2])