changeset 28814:1f65f291a5b7

localrepo: drop force check from checkcommitpatterns It was retained to make the code movement clearer
author timeless <timeless@mozdev.org>
date Wed, 06 Apr 2016 18:08:38 +0000
parents d77b790bd8d6
children 44611ad4fbd9
files mercurial/localrepo.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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():