tests: extract commonly used commit/tag functions into testutil library
Thanks to Felipe Contreras for the patch which this was based on. The functions were renamed to make it clearer that these are shell functions rather than normal git/hg commands, and to make it clearer which tool is being invoked. Old name | New name ------------------------ commit | fn_git_commit tag | fn_git_tag hgcommit | fn_hg_commit hgtag | fn_hg_tag Extraction from test-encoding.t was left for a subsequent patch, as I was seeing unexpected output changes when I attempted the extraction. The gitcommit and hgcommit functions in test-bookmark-workflow.t were left as-is for now, as they have a different behavior than the standard version (separate counters for each).
Showing
- tests/test-bookmark-workflow.t 0 additions, 7 deletionstests/test-bookmark-workflow.t
- tests/test-clone.t 2 additions, 18 deletionstests/test-clone.t
- tests/test-empty-working-tree.t 0 additions, 7 deletionstests/test-empty-working-tree.t
- tests/test-file-removal.t 5 additions, 21 deletionstests/test-file-removal.t
- tests/test-git-clone.t 2 additions, 18 deletionstests/test-git-clone.t
- tests/test-git-submodules.t 2 additions, 18 deletionstests/test-git-submodules.t
- tests/test-git-tags.t 4 additions, 27 deletionstests/test-git-tags.t
- tests/test-git-workflow.t 2 additions, 24 deletionstests/test-git-workflow.t
- tests/test-hg-author.t 9 additions, 31 deletionstests/test-hg-author.t
- tests/test-hg-branch.t 3 additions, 25 deletionstests/test-hg-branch.t
- tests/test-hg-tags.t 2 additions, 24 deletionstests/test-hg-tags.t
- tests/test-incoming.t 4 additions, 26 deletionstests/test-incoming.t
- tests/test-keywords.t 2 additions, 18 deletionstests/test-keywords.t
- tests/test-merge.t 3 additions, 19 deletionstests/test-merge.t
- tests/test-octopus.t 4 additions, 20 deletionstests/test-octopus.t
- tests/test-outgoing.t 4 additions, 26 deletionstests/test-outgoing.t
- tests/test-pull-after-strip.t 3 additions, 19 deletionstests/test-pull-after-strip.t
- tests/test-pull.t 3 additions, 19 deletionstests/test-pull.t
- tests/test-push.t 4 additions, 26 deletionstests/test-push.t
- tests/test-subrepos.t 7 additions, 30 deletionstests/test-subrepos.t
Loading
Please register or sign in to comment