2 t-import-chk-authorship () {
3 perl -ne 'print $1,"\n" if m/^ -- (\S.*\>) /' debian/changelog \
5 > $tmp/authorship.changelog
6 git log --pretty=format:'%an <%ae>%n%cn <%ce>' \
8 > $tmp/authorship.commits
9 diff $tmp/authorship.{changelog,commits}
21 t-dgit --no-rm-on-error clone $p
23 # And now we make an update using the same orig tarball, and
24 # check that the orig import is stable.
28 t-import-chk-authorship
30 git branch first-import
32 m='Commit for import check'
33 echo "$m" >>import-check
36 dch -v $v -D unstable -m "$m"
38 git add import-check debian/changelog
41 t-dgit -wgf quilt-fixup
42 t-dgit -wgf build-source
44 # The resulting .dsc does not have a Dgit line (because dgit push
45 # puts that in). So we just shove it in the archive now
47 ln ../${p}_${v}.* $tmp/mirror/pool/main/
52 git branch first-2nd-import remotes/dgit/dgit/sid
56 git update-ref refs/remotes/dgit/dgit/sid first-import
61 t-ref-same refs/remotes/dgit/dgit/sid
62 t-ref-same refs/heads/first-2nd-import
64 for orig in ../${p}_${v%-*}.orig*.tar.*; do
65 tar -atf $orig | LC_ALL=C sort >../files.o
66 pfx=$(perl <../files.o -ne '
68 m#^([^/]+/)# or exit 0;
76 $_="" if m/^$/ || m#/$# || m#^\.git/#;
79 pat="^Import ${orig//./\\.}\$"
81 for start in first-import first-2nd-import; do
82 git log --pretty='tformat:%H' --grep "$pat" $start \
84 test $(wc -l <../t.imp) = 1
86 t-ref-same-val "$orig $start" "$imp"
88 git ls-tree -r --name-only "$t_ref_val:" \
95 t-import-chk() { t-import-chk1 "$@"; t-import-chk2; }