Mercurial > hg
annotate tests/testlib/common.sh @ 50825:973fbb27ab45
backout: migrate `opts` to native kwargs
It will take a bit to unwind `cmdutil.commit`, so there's a conversion to
byteskwargs there, without changing the type of `opts` in this function. That's
also useful to flag it as needing to be changed.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sun, 20 Aug 2023 00:27:27 -0400 |
parents | 685383486d0a |
children |
rev | line source |
---|---|
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 } |