Mercurial > hg
comparison tests/test-contrib-check-commit.t @ 30843:2fb3ae89e4e1 stable
contrib: fix check-commit to not reject commits from `hg sign` and `hg tag`
I'm tired of having a spurious red build every time we do a
release. Fix it once and for all.
author | Augie Fackler <augie@google.com> |
---|---|
date | Wed, 18 Jan 2017 23:34:35 -0500 |
parents | e529b5f1b9e3 |
children | 1bd3e922de18 |
comparison
equal
deleted
inserted
replaced
30842:94af7d0c812f | 30843:2fb3ae89e4e1 |
---|---|
27 > | 27 > |
28 > + def blahblah(x): | 28 > + def blahblah(x): |
29 > + pass | 29 > + pass |
30 > EOF | 30 > EOF |
31 $ cat patch-with-long-header.diff | $TESTDIR/../contrib/check-commit | 31 $ cat patch-with-long-header.diff | $TESTDIR/../contrib/check-commit |
32 | |
33 This would normally be against the rules, but it's okay because that's | |
34 what tagging and signing looks like: | |
35 | |
36 $ cat > creates-a-tag.diff << EOF | |
37 > # HG changeset patch | |
38 > # User Augie Fackler <raf@durin42.com> | |
39 > # Date 1484787778 18000 | |
40 > # Wed Jan 18 20:02:58 2017 -0500 | |
41 > # Branch stable | |
42 > # Node ID c177635e4acf52923bc3aa9f72a5b1ad1197b173 | |
43 > # Parent a1dd2c0c479e0550040542e392e87bc91262517e | |
44 > Added tag 4.1-rc for changeset a1dd2c0c479e | |
45 > | |
46 > diff --git a/.hgtags b/.hgtags | |
47 > --- a/.hgtags | |
48 > +++ b/.hgtags | |
49 > @@ -150,3 +150,4 @@ 438173c415874f6ac653efc1099dec9c9150e90f | |
50 > eab27446995210c334c3d06f1a659e3b9b5da769 4.0 | |
51 > b3b1ae98f6a0e14c1e1ba806a6c18e193b6dae5c 4.0.1 | |
52 > e69874dc1f4e142746ff3df91e678a09c6fc208c 4.0.2 | |
53 > +a1dd2c0c479e0550040542e392e87bc91262517e 4.1-rc | |
54 > EOF | |
55 $ $TESTDIR/../contrib/check-commit < creates-a-tag.diff | |
32 | 56 |
33 A patch with lots of errors: | 57 A patch with lots of errors: |
34 | 58 |
35 $ cat > patch-with-long-header.diff << EOF | 59 $ cat > patch-with-long-header.diff << EOF |
36 > # HG changeset patch | 60 > # HG changeset patch |