This is going to be needed in a moment. Unknown --force options are
harmless and just generate warnings, so we do this in advance.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
-t-dgit push --new --deliberately-include-questionable-history
+t-dgit push --new --deliberately-include-questionable-history \
+ --force-reusing-version
t-git-dir-check secret
t-policy-periodic
t-git-dir-check secret
t-policy-periodic
"Package is in NEW and has not been accepted or rejected yet" \
t-dgit --deliberately-TEST-dgit-only-not-fast-forward push
"Package is in NEW and has not been accepted or rejected yet" \
t-dgit --deliberately-TEST-dgit-only-not-fast-forward push
-t-dgit --deliberately-not-fast-forward push
+t-dgit --deliberately-not-fast-forward --force-reusing-version push
cd $dgitrepo
t-expect-push-fail "Not a valid object name" \
cd $dgitrepo
t-expect-push-fail "Not a valid object name" \
"Package is in NEW and has not been accepted or rejected yet" \
t-dgit push
"Package is in NEW and has not been accepted or rejected yet" \
t-dgit push
-t-dgit push --deliberately-include-questionable-history
+t-dgit push --deliberately-include-questionable-history \
+ --force-reusing-version
t-archive-process-incoming sid
t-archive-process-incoming sid
t-dgit build
t-expect-push-fail \
'Reason: rewound suite sid; --deliberately-not-fast-forward specified' \
t-dgit build
t-expect-push-fail \
'Reason: rewound suite sid; --deliberately-not-fast-forward specified' \
+t-dgit --force-reusing-version push
'all previously pushed versions were found to have been removed from NEW' \
t-dgit push-source --new
'all previously pushed versions were found to have been removed from NEW' \
t-dgit push-source --new
-t-dgit push-source --new --deliberately-include-questionable-history
+t-dgit push-source --new --deliberately-include-questionable-history \
+ --force-reusing-version
t-archive-process-incoming new
t-archive-process-incoming new
t-dgit -cdgit-distro.test-dummy.git-url=file:///dev/enoent/fail \
push --new
t-dgit -cdgit-distro.test-dummy.git-url=file:///dev/enoent/fail \
push --new
+t-dgit push --new --force-reusing-version
git commit -a -m 'go back to plain upstream'
t-dgit -wgf build-source
git commit -a -m 'go back to plain upstream'
t-dgit -wgf build-source
+t-dgit --damp-run --force-reusing-version push
git checkout $tagpfx/1.0
t-dgit build
git checkout $tagpfx/1.0
t-dgit build
-t-dgit push --deliberately-fresh-repo
+t-dgit push --deliberately-fresh-repo --force-reusing-version
remote="`git config dgit-distro.test-dummy.git-url`/$p.git"
remote="`git config dgit-distro.test-dummy.git-url`/$p.git"