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
31 : ----- ordinary new upstream test -----
33 t-git-debrebase new-upstream ${v%-*}
35 date=$(git log --format=%aD -n1 debian/changelog)
36 cat >../clog.expected <<END
37 example ($v) UNRELEASED; urgency=medium
39 * Update to new upstream version ${v%-*}.
41 -- dgit test git user <dgit-test@debian.example.net> $date
44 git show before-new-upstream:debian/changelog >>../clog.expected
45 diff -u ../clog.expected debian/changelog
48 git reflog | egrep 'debrebase new-upstream.*checkout'
50 t-git-debrebase stitch
55 : ----- 'with --anchor' -----
57 git checkout -b with-anchor startpoint
59 t-git-debrebase analyse >../anal.anch
60 anchor=$(perl <../anal.anch -ne '
61 next unless m/^(\w+) Anchor\s/;
66 GIT_REFLOG_ACTION='STUNT-RLA' \
67 t-git-debrebase --anchor=$anchor -fanchor-treated new-upstream $v upstream
69 git reflog | egrep 'STUNT-RLA: debrebase new-upstream'
70 git reflog | egrep 'STUNT-RLA: debrebase: launder for new upstream'
72 t-git-debrebase stitch
75 git diff --quiet ordinary