chiark / gitweb /
changelog: start 7.1~
[dgit.git] / tests / tests / gdr-newupstream
index 300d4345dde9f2fd06f2f4a9327f2417b41c6118..30396691912872c8fd03cf91c9a4c942c5981379 100755 (executable)
@@ -85,4 +85,25 @@ t-gdr-good stitched
 
 git diff --quiet ordinary
 
+: ----- with pre-existing changes -----
+
+git checkout -b with-preexisting before-new-upstream
+
+t-dch-commit drivel-in-changelog
+git branch before-new-upstream-with-changes
+
+t-git-next-date
+
+t-git-debrebase new-upstream ${v%-*}
+
+clog-check-1 before-new-upstream-with-changes
+perl -pe <../clog.before >../clog.expected '
+       BEGIN { ($m,$e,@ARGV) = @ARGV; }
+       next unless 1..m/^ --/;
+       s/\([^()]+\)/('$v')/ if m/^example /;
+       $_ .= "$m\n" if m/^  \* drivel-in-changelog/;
+       $_ = " -- $e\n" if m/^ -- /;
+' "$m" "$e"
+clog-check-2
+
 t-ok