5 t-setup-import examplegit
11 t-commit 'No changes, just send to stable' '' stable
15 t-expect-fail 'Perhaps debian/changelog does not mention' \
16 t-dgit push --overwrite stable
18 t-dgit setup-mergechangelogs
20 t-expect-fail 'fix conflicts and then commit the result' \
21 git merge dgit/dgit/stable
23 git checkout master which
26 perl -i~ -pe 's/^(\w+ \(\S+\)) stable/$1 UNRELEASED/ if $.>1' debian/changelog
27 git add debian/changelog
28 git commit -m 'UNRELEASED changelog'
32 t-expect-fail E:'Distribution.*is UNRELEASED' \
33 t-dgit push --overwrite stable
35 git revert --no-edit 'HEAD^{/UNRELEASED changelog}'
39 perl -i~ -pe 's/^(\w+ \(\S+)(\) stable)/$1+X$2/ if $.>1' debian/changelog
40 git add debian/changelog
41 git commit -m 'Break changelog'
43 t-expect-fail 'Perhaps debian/changelog does not mention' \
44 t-dgit push --overwrite stable
46 git revert --no-edit 'HEAD^{/Break changelog}'
48 t-dgit push --overwrite stable