D1081: tests: add check in test-check-commit.t to verify releasenotes directives

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Sat Oct 14 20:42:02 UTC 2017


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

REVISION SUMMARY
  I had some trouble getting this right in a recent change of mine, and
  also found that some of our commits since 4.3 don't work right, so
  let's bounce commits that get it wrong.

TEST PLAN
  made a commit with broken releasenotes directives, verified I
  got some failure output from test-check-commit.t. It's not the
  prettiest, but it'll do for now.

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  tests/test-check-commit.t

CHANGE DETAILS

diff --git a/tests/test-check-commit.t b/tests/test-check-commit.t
--- a/tests/test-check-commit.t
+++ b/tests/test-check-commit.t
@@ -17,6 +17,10 @@
   >        cat ${TESTTMP}/check-commit.out
   >        echo
   >   fi
+  >   testrepohg --config extensions.releasenotes= releasenotes -r $node notes
+  >   if [ $? -ne 0 ] ; then
+  >        echo "Revision $node has broken releasenotes declaration"
+  >   fi
   > done
 
 



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


More information about the Mercurial-devel mailing list