tests/testlib/common.sh
author Raphaël Gomès <rgomes@octobus.net>
Wed, 11 Jan 2023 16:42:29 +0100
changeset 49981 364e78389653
parent 46764 685383486d0a
permissions -rw-r--r--
rust-ui: refactor ui code for printing narrow/sparse warnings This will be used elsewhere in the code, starting from the next commit.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
46764
685383486d0a pull: allow to specify multiple sources
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
     1
mkcommit() {
685383486d0a pull: allow to specify multiple sources
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
     2
   name="$1"
685383486d0a pull: allow to specify multiple sources
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
     3
   shift
685383486d0a pull: allow to specify multiple sources
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
     4
   echo "$name" > "$name"
685383486d0a pull: allow to specify multiple sources
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
     5
   hg add "$name"
685383486d0a pull: allow to specify multiple sources
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
     6
   hg ci -m "$name" "$@"
685383486d0a pull: allow to specify multiple sources
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
     7
}