mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 07:17:55 +03:00
commit: apply force flag without files
This commit is contained in:
parent
6f44115342
commit
c22dd49465
@ -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])
|
||||
|
Loading…
Reference in New Issue
Block a user