Patchwork [2,of,3] localrepo: drop force check from checkcommitpatterns

login
register
mail settings
Submitter timeless@mozdev.org
Date April 6, 2016, 6:24 p.m.
Message ID <c32a62f336f89877deb1.1459967072@waste.org>
Download mbox | patch
Permalink /patch/14396/
State Accepted
Headers show

Comments

timeless@mozdev.org - April 6, 2016, 6:24 p.m.
# HG changeset patch
# User timeless <timeless@mozdev.org>
# Date 1459966118 0
#      Wed Apr 06 18:08:38 2016 +0000
# Node ID c32a62f336f89877deb1753ac1c1eb104b656839
# Parent  f51bc5f09b2b5aae476e31f44755229a591afa80
localrepo: drop force check from checkcommitpatterns

It was retained to make the code movement clearer

Patch

diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -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():