Mercurial > public > mercurial-scm > hg-stable
diff tests/test-contrib-check-commit.t @ 28013:e529b5f1b9e3
check-commit: check for double-addition of blank lines
Previously, we were only checking for a blank line being added next to
an existing one. Now we also check for two being added at the same time.
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Fri, 05 Feb 2016 16:54:01 -0600 |
parents | 1d095371de47 |
children | 2fb3ae89e4e1 |
line wrap: on
line diff
--- a/tests/test-contrib-check-commit.t Fri Feb 05 16:52:02 2016 -0600 +++ b/tests/test-contrib-check-commit.t Fri Feb 05 16:54:01 2016 -0600 @@ -87,6 +87,10 @@ > @@ -599,7 +599,7 @@ > if opts.get('all'): > + > + > + + > + some = otherjunk + > + > + > + def blah_blah(x): > + pass @@ -102,10 +106,10 @@ This has no topic and ends with a period. 7: don't add trailing period on summary line This has no topic and ends with a period. - 15: adds double empty line - + - 16: adds a function with foo_bar naming - + def blah_blah(x): 19: adds double empty line + + 20: adds a function with foo_bar naming + + def blah_blah(x): + 23: adds double empty line + + [1]