Print the git old and new modes too.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
--include-removal to dpkg-source, and tolerating it when we do our
quilt fixup analysis. dpkg-source has supported this since at least
stretch. Closes:#848901.
+ * Improve "cannot represent change" message: print the git old and new
+ modes too.
--
};
if ($@) {
local $/="\n"; chomp $@;
- push @$unrepres, [ $f, $@ ];
+ push @$unrepres, [ $f, "$@ ($oldmode->$newmode)" ];
}
}
badly-2 () {
git commit -m "Commit wrongness $wrongfn ($wrongmsg)"
- t-expect-fail "cannot represent change: $wrongmsg: $wrongfn" \
+ t-expect-fail E:"cannot represent change: $wrongmsg .*: $wrongfn" \
attempt
}