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
78 dsc=$troot/pkg-srcs/${p}_${v}.dsc
82 t-expect-fail 'it does not exist' \
87 t-expect-fail 'No such file or directory' \
88 check-import ../enoents $v
97 t-expect-fail "Your git tree does not have that object" \
98 check-import ../mirror/pool/main 1.2 --no-chase-dsc-distro
100 check-import ../mirror/pool/main 1.2 --force-import-dsc-with-dgit-field
103 dsc2=$troot/pkg-srcs/${p}_${v}.dsc
105 t-expect-fail E:'Branch.*already exists' \
106 t-dgit import-dsc $dsc2 $branch
108 git branch merge-reset
109 t-dgit import-dsc $dsc2 ..$branch
110 t-has-ancestor merge-reset $branch
112 git push . +merge-reset:$branch
114 t-dgit import-dsc $dsc2 +$branch
116 mb=$(t-git-merge-base merge-reset $branch)
119 t-expect-fail 'signature check failed' \
120 t-dgit import-dsc --require-valid-signature $dsc2 +$branch