Mercurial > hg
comparison tests/testlib/obsmarker-common.sh @ 42968:86f39a89b63e
testlib: allow more argument to mkcommit
This is simple and handy. See next changesets for usage.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 25 Sep 2019 12:57:11 +0200 |
parents | 1858fc2327ef |
children |
comparison
equal
deleted
inserted
replaced
42967:3609ea82b971 | 42968:86f39a89b63e |
---|---|
1 mkcommit() { | 1 mkcommit() { |
2 echo "$1" > "$1" | 2 name="$1" |
3 hg add "$1" | 3 shift |
4 hg ci -m "$1" | 4 echo "$name" > "$name" |
5 hg add "$name" | |
6 hg ci -m "$name" "$@" | |
5 } | 7 } |
6 | 8 |
7 getid() { | 9 getid() { |
8 hg log --hidden --template '{node}\n' --rev "$1" | 10 hg log --hidden --template '{node}\n' --rev "$1" |
9 } | 11 } |