4 t-tstunt-parsechangelog
6 t-setup-import examplegit
16 dsc=${path}/${p}_${v}.dsc
17 t-dgit $opts import-dsc $dsc $branch
34 git branch -D u.$v ||:
35 git checkout -b u.$v $branch
38 cp -al ../t.unpack/*/. .
41 git diff --stat --exit-code
46 check-import ../mirror/pool/main 1.2
48 dgit12=`git rev-parse HEAD`
50 dsc2=../mirror/pool/main/${p}_2.0.dsc
53 t-expect-fail 'is checked out - will not update' \
54 t-dgit import-dsc $dsc2 $branch
58 t-expect-fail 'Not fast forward' \
59 t-dgit import-dsc $dsc2 $branch
61 t-expect-fail 'Not fast forward' \
62 t-dgit import-dsc $dsc2 ..$branch
64 t-dgit import-dsc $dsc2 +$branch
73 check-import $troot/pkg-srcs 1.0-1
75 t-expect-fail "Your git tree does not have that object" \
76 check-import ../mirror/pool/main 1.2 --no-chase-dsc-distro
78 check-import ../mirror/pool/main 1.2 --force-import-dsc-with-dgit-field
81 dsc2=$troot/pkg-srcs/${p}_${v}.dsc
83 t-expect-fail E:'Branch.*already exists' \
84 t-dgit import-dsc $dsc2 $branch
86 git branch merge-reset
87 t-dgit import-dsc $dsc2 ..$branch
88 t-has-ancestor merge-reset $branch
90 git push . +merge-reset:$branch
92 t-dgit import-dsc $dsc2 +$branch
94 mb=$(t-git-merge-base merge-reset $branch)
97 t-expect-fail 'signature check failed' \
98 t-dgit import-dsc --require-valid-signature $dsc2 +$branch