D1028: mpatch: reformat function prototypes with clang-format
ryanmce (Ryan McElroy)
phabricator at mercurial-scm.org
Fri Oct 13 13:40:22 EDT 2017
ryanmce added a comment.
I thought it was string that check-code doesn't fire on https://phab.mercurial-scm.org/D1030 but does fire here.
It turns out that the check-code only finds spaces at the start of the line. So is you start with a tab and then spaces, that's fine. But if you start with spaces you trip up against test-check-code. In https://phab.mercurial-scm.org/D1030, the re-indented line start with a tab, whereas here the re-indented line is top-level so it starts with spaces.
I, for one, am -1 on tabs but that's not a battle worth fighting probably. However, we can probably come up with a smarter test-check-code. If we're moving towards clang-format, it seems that the test-code should be checking that and not arbitrarily for spaces at the start of a line.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D1028
To: durin42, #hg-reviewers, pulkit, yuja
Cc: ryanmce, yuja, mercurial-devel
More information about the Mercurial-devel
mailing list