5 t-tstunt-parsechangelog
8 t-policy dgit-repos-policy-trusting
9 t-prep-newpackage example 1.0
18 t-commit 'Prep v1.1 which will be rewound'
23 git checkout debian/1.0
25 t-dgit push --deliberately-fresh-repo
27 remote="`git config dgit-distro.test-dummy.git-url`/$p.git"
29 t-expect-push-fail 'Replay of previously-rewound upload' \
32 debian/1.1~0:refs/dgit/sid
37 : "More subtle replay prevention checks"
42 # We have to stop the pushes succeeding because if they work they
43 # record the tag, which prevents the replays. We are simulating
44 # abortive pushes (since we do want to avoid a situation where
45 # dangerous old signed tags can exist).
48 t-commit "request with $delib that we will replay"
50 t-expect-push-fail E:'policy-hook.*No such file or directory' \
53 t-policy dgit-repos-policy-trusting
60 git show debian/$replayv | grep -e $delib
61 t-expect-push-fail "$mpat" \
64 +debian/$replayv~0:refs/dgit/sid
67 prepare-replay --deliberately-fresh-repo
69 # simulate some other thing that we shouldn't delete
70 git push $tmp/git/$p.git +master:refs/heads/for-testing
72 attempt-replay 'does not declare previously heads/for-testing'
74 prepare-replay --deliberately-not-fast-forward
76 t-commit 'later version to stop not fast forward rewinding'
80 attempt-replay "does not declare previously tags/debian/$v"