Mercurial > evolve
changeset 5961:dad6bd8180d3
tests: use mkcommit() from common.sh in test-fold.t
Notice the -q flag to hg ci.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Thu, 17 Jun 2021 10:57:53 +0300 |
parents | d919851981d4 |
children | b68789e8c535 |
files | tests/test-fold.t |
diffstat | 1 files changed, 1 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- 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