Mercurial > hg
view contrib/clang-format-ignorelist @ 45065:b8f4ead9fa49
commitctx: reorder some conditional for efficiency in _filecommit
Checking if a dict is empty will be faster than comparing text. I don't expect
it to be a huge performance win, but still a good (but gratuitous) cleanup to
do while we are at it.
This is part of a larger refactoring/cleanup of the commitctx code to clarify
and augment the logic gathering metadata useful for copy tracing. The current
code is a tad too long and entangled to make such update easy. We start with
easy and small cleanup.
Differential Revision: https://phab.mercurial-scm.org/D8701
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 06 Jul 2020 19:16:04 +0200 |
parents | 98944715a02c |
children | e92ca942ddca |
line wrap: on
line source
# Files that just need to be migrated to the formatter. # Do not add new files here! mercurial/cext/manifest.c mercurial/cext/osutil.c # Vendored code that we should never format: syntax: glob contrib/python-zstandard/**.c contrib/python-zstandard/**.h hgext/fsmonitor/pywatchman/**.c mercurial/thirdparty/**.c mercurial/thirdparty/**.h