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
67 dsc3=$troot/pkg-srcs/example_1.0-1+brokenmeta.dsc
68 t-dgit import-dsc $dsc3 +$branch
77 check-import $troot/pkg-srcs 1.0-1
82 dsc=$troot/pkg-srcs/${p}_${v}.dsc
86 t-expect-fail 'No such file or directory' \
91 t-expect-fail 'No such file or directory' \
92 check-import ../enoents $v
101 t-expect-fail "Your git tree does not have that object" \
102 check-import ../mirror/pool/main 1.2 --no-chase-dsc-distro
104 check-import ../mirror/pool/main 1.2 --force-import-dsc-with-dgit-field
107 dsc2=$troot/pkg-srcs/${p}_${v}.dsc
109 t-expect-fail E:'Branch.*already exists' \
110 t-dgit import-dsc $dsc2 $branch
112 git branch merge-reset
113 t-dgit import-dsc $dsc2 ..$branch
114 t-has-ancestor merge-reset $branch
116 git push . +merge-reset:$branch
118 t-dgit import-dsc $dsc2 +$branch
120 mb=$(t-git-merge-base merge-reset $branch)
123 t-expect-fail 'signature check failed' \
124 t-dgit import-dsc --require-valid-signature $dsc2 +$branch