5 t-tstunt-parsechangelog
7 t-git-config dgit.default.dep14tag no
10 t-policy dgit-repos-policy-trusting
11 t-prep-newpackage example 1.0
20 t-commit 'Prep v1.1 which will be rewound'
25 git checkout $tagpfx/1.0
27 t-dgit push --deliberately-fresh-repo
29 remote="`git config dgit-distro.test-dummy.git-url`/$p.git"
31 t-expect-push-fail 'Replay of previously-rewound upload' \
34 $tagpfx/1.1~0:refs/dgit/sid
39 : "More subtle replay prevention checks"
44 # We have to stop the pushes succeeding because if they work they
45 # record the tag, which prevents the replays. We are simulating
46 # abortive pushes (since we do want to avoid a situation where
47 # dangerous old signed tags can exist).
50 t-commit "request with $delib that we will replay"
52 t-expect-push-fail 'system: No such file or directory' \
55 t-policy dgit-repos-policy-trusting
62 git show $tagpfx/$replayv | grep -e $delib
63 t-expect-push-fail "$mpat" \
66 +$tagpfx/$replayv~0:refs/dgit/sid
69 prepare-replay --deliberately-fresh-repo
71 # simulate some other thing that we shouldn't delete
72 git push $dgitrepo +master:refs/heads/for-testing
74 attempt-replay 'does not declare previously heads/for-testing'
76 prepare-replay --deliberately-not-fast-forward
78 t-commit 'later version to stop not fast forward rewinding'
82 attempt-replay "does not declare previously tags/$tagpfx/$v"