# HG changeset patch # User timeless # Date 2016-04-06 18:08:38 # Node ID 1f65f291a5b7a7ecd6c70d587075f5a7403cf6a7 # Parent d77b790bd8d68f4d5c980dcd8f5eb7d3f45a14c5 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 @@ 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():