diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2015-04-19 15:56:47 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2015-05-31 11:54:05 +0100 |
commit | a34850cd18a1e8f163f3dda9c8fb6272706a8ea0 (patch) | |
tree | 8a2b14ccfaa3d7a33909e02ae9fd614fe474ab8e /tests/lib | |
parent | 475e31b775275ac895e21afa4143c10596b512d1 (diff) |
Test suite: break out t-prep-newpackage (nfc)
Diffstat (limited to 'tests/lib')
-rw-r--r-- | tests/lib | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -81,7 +81,20 @@ t-has-ancestor () { if [ x$mbase != x$ancestor ]; then fail "not ff $ancestor..$now, $mbase != $ancestor" fi -} +} + +t-prep-newpackage () { + p=$1 + v=$2 + t-archive-none $p + t-git-none + v=3-1 + t-worktree $v + cd $p + git branch -m dgit/sid master + git remote rm dgit + cd .. +} t-archive-none () { p=$1 |