# HG changeset patch # User Anton Shestakov # Date 1623916673 -10800 # Node ID dad6bd8180d3270975dac1bfb92751de61563a89 # Parent d919851981d4ce9b07ee1635f42de189560f87ed tests: use mkcommit() from common.sh in test-fold.t Notice the -q flag to hg ci. diff -r d919851981d4 -r dad6bd8180d3 tests/test-fold.t --- a/tests/test-fold.t Thu Jun 17 10:55:51 2021 +0300 +++ b/tests/test-fold.t Thu Jun 17 10:57:53 2021 +0300 @@ -11,11 +11,6 @@ > [ui] > logtemplate = '{rev} - {node|short} {desc|firstline} [{author}] ({phase}) {bookmarks}\n' > EOF - $ mkcommit() { - > echo "$1" > "$1" - > hg add "$1" - > hg ci -qm "$1" - > } $ hg init fold-tests $ cd fold-tests/ @@ -319,6 +314,7 @@ $ hg up null 0 files updated, 0 files merged, 1 files removed, 0 files unresolved $ mkcommit apple + created new head $ mkcommit banana $ hg merge