6 t-dependencies NO-DGIT GDR
8 t-tstunt-parsechangelog
9 t-setup-import gdr-convert-gbp-noarchive
15 t-gdr-prep-new-upstream 2.1
24 t-expect-fail F:'Could not determine appropriate upstream commitish' \
25 t-git-debrebase new-upstream $v
29 git branch before-new-upstream
33 date=$(git log --format=%aD -n1 debian/changelog)
34 git show $before:debian/changelog >../clog.before
35 m=" * Update to new upstream version ${v%-*}."
36 e="dgit test git user <dgit-test@debian.example.net> $date"
39 diff -u ../clog.expected debian/changelog
42 : ----- ordinary new upstream test -----
44 t-git-debrebase new-upstream ${v%-*}
46 clog-check-1 before-new-upstream
47 cat - <<END ../clog.before >../clog.expected
48 example ($v) UNRELEASED; urgency=medium
58 git reflog | egrep 'debrebase new-upstream.*checkout'
60 t-git-debrebase stitch
65 : ----- 'with --anchor' -----
67 git checkout -b with-anchor startpoint
69 t-git-debrebase analyse >../anal.anch
70 anchor=$(perl <../anal.anch -ne '
71 next unless m/^(\w+) Anchor\s/;
76 GIT_REFLOG_ACTION='STUNT-RLA' \
77 t-git-debrebase --anchor=$anchor -fanchor-treated new-upstream $v upstream
79 git reflog | egrep 'STUNT-RLA: debrebase new-upstream'
80 git reflog | egrep 'STUNT-RLA: debrebase: launder for new upstream'
82 t-git-debrebase stitch
85 git diff --quiet ordinary