localrepo: drop force check from checkcommitpatterns
authortimeless <timeless@mozdev.org>
Wed, 06 Apr 2016 18:08:38 +0000
changeset 28814 1f65f291a5b7
parent 28813 d77b790bd8d6
child 28815 44611ad4fbd9
localrepo: drop force check from checkcommitpatterns It was retained to make the code movement clearer
mercurial/localrepo.py
--- a/mercurial/localrepo.py	Wed Apr 06 17:52:17 2016 +0000
+++ b/mercurial/localrepo.py	Wed Apr 06 18:08:38 2016 +0000
@@ -1479,8 +1479,7 @@
 
     def checkcommitpatterns(self, wctx, vdirs, match, status, fail):
         """check for commit arguments that aren't commitable"""
-        force = False
-        if not force and (match.isexact() or match.prefix()):
+        if match.isexact() or match.prefix():
             matched = set(status.modified + status.added + status.removed)
 
             for f in match.files():