# HG changeset patch # User Matt Mackall # Date 1243882281 18000 # Node ID f364cc1d98c4677493cd5bf79acce48d8cc53f0b # Parent 4ea995e5aac04fc9908d2c5a2f36a75997ebe4e4 commit: apply force flag without files diff -r 4ea995e5aac0 -r f364cc1d98c4 mercurial/localrepo.py --- a/mercurial/localrepo.py Mon Jun 01 13:51:21 2009 -0500 +++ b/mercurial/localrepo.py Mon Jun 01 13:51:21 2009 -0500 @@ -801,7 +801,9 @@ 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])