[PATCH 2 of 3] localrepo: drop force check from checkcommitpatterns
timeless
timeless at mozdev.org
Wed Apr 6 14:24:32 EDT 2016
# HG changeset patch
# User timeless <timeless at 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
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():
More information about the Mercurial-devel
mailing list