D1132: mpatch: switch alignment of wrapped line from tab to spaces with clang-format

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Tue Oct 17 01:53:11 UTC 2017


durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  I may be a weird person for liking this style, but our C style is
  historically nominally the Linux Kernel style, and when you configure
  clang-format to be kernel-ish, this is what you get. If we want to
  change it, we can do so by tweaking the formatter rules in the future.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D1132

AFFECTED FILES
  mercurial/mpatch.c

CHANGE DETAILS

diff --git a/mercurial/mpatch.c b/mercurial/mpatch.c
--- a/mercurial/mpatch.c
+++ b/mercurial/mpatch.c
@@ -275,5 +275,5 @@
 	/* divide and conquer, memory management is elsewhere */
 	len = (end - start) / 2;
 	return combine(mpatch_fold(bins, get_next_item, start, start + len),
-		       mpatch_fold(bins, get_next_item, start + len, end));
+	               mpatch_fold(bins, get_next_item, start + len, end));
 }



To: durin42, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list