chiark
/
gitweb
/
~ianmdlvl
/
dgit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Test suite: break out t-prep-newpackage (nfc)
[dgit.git]
/
tests
/
lib
diff --git
a/tests/lib
b/tests/lib
index 1516646f23ae1d239be725cb0ccf468afa8ca00f..939aa6c6e24fa525c7a55f399c5777d6b75fc3c2 100644
(file)
--- a/
tests/lib
+++ b/
tests/lib
@@
-81,7
+81,20
@@
t-has-ancestor () {
if [ x$mbase != x$ancestor ]; then
fail "not ff $ancestor..$now, $mbase != $ancestor"
fi
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
t-archive-none () {
p=$1