Patchwork D1003: bdiff: sort includes using clang-format

login
register
mail settings
Submitter phabricator
Date Oct. 11, 2017, 2:59 p.m.
Message ID <differential-rev-PHID-DREV-p3oywxxz6x6osi4f3r6s-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/24740/
State Accepted
Headers show

Comments

phabricator - Oct. 11, 2017, 2:59 p.m.
durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  mercurial/bdiff.c

CHANGE DETAILS




To: durin42, #hg-reviewers
Cc: mercurial-devel
phabricator - Oct. 11, 2017, 6:21 p.m.
pulkit accepted this revision.
pulkit added a comment.


  Should we include some magic string in all these formatting related revisions so that we can have an easy revset to skip them in case of `hg annotate`?

REPOSITORY
  rHG Mercurial

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

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

Patch

diff --git a/mercurial/bdiff.c b/mercurial/bdiff.c
--- a/mercurial/bdiff.c
+++ b/mercurial/bdiff.c
@@ -9,13 +9,13 @@ 
  Based roughly on Python difflib
 */
 
+#include <limits.h>
 #include <stdlib.h>
 #include <string.h>
-#include <limits.h>
 
+#include "bdiff.h"
+#include "bitmanipulation.h"
 #include "compat.h"
-#include "bitmanipulation.h"
-#include "bdiff.h"
 
 /* Hash implementation from diffutils */
 #define ROL(v, n) ((v) << (n) | (v) >> (sizeof(v) * CHAR_BIT - (n)))