From ab5c7033f1dc132738c6d05675719c679473de15 Mon Sep 17 00:00:00 2001 From: timeless Date: Wed, 6 Apr 2016 18:08:38 +0000 Subject: [PATCH] localrepo: drop force check from checkcommitpatterns It was retained to make the code movement clearer --- mercurial/localrepo.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py index cabd6db3ed..a6bf5e342a 100644 --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -1479,8 +1479,7 @@ class localrepository(object): 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():