X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=git-debrebase;h=0c351a474459471abd8ec66b9a5a3c3ffac48bba;hb=4f753d1e7e9916352bf2f8670f56c1fa20791915;hp=7b2e4f311dfbdf64813d14cb2bac92184837a6ff;hpb=9cda023c0c49449a1d5862483df8d785e062765b;p=dgit.git diff --git a/git-debrebase b/git-debrebase index 7b2e4f31..0c351a47 100755 --- a/git-debrebase +++ b/git-debrebase @@ -679,10 +679,11 @@ sub walk ($;$$) { if ($nogenerate) { return (undef,undef); } - die "commit $cur: Cannot cope with this commit (d.". + fail "found unprocessable commit, cannot cope:". + (defined $cl->{Why} ? "; $cl->{Why}": ''). + " (commit $cur) (d.". (join ' ', map { sprintf "%#x", $_->{Differs} } @{ $cl->{Parents} }). - (defined $cl->{Why} ? "; $cl->{Why}": ''). ")"; }; @@ -970,7 +971,8 @@ sub defaultcmd_rebase () { } sub cmd_analyse () { - die if ($ARGV[0]//'') =~ m/^-/; + badusage "analyse does not support any options" + if @ARGV and $ARGV[0] =~ m/^-/; badusage "too many arguments to analyse" if @ARGV>1; my ($old) = @ARGV; if (defined $old) { @@ -1658,7 +1660,7 @@ sub cmd_convert_from_gbp () { print STDERR "cannot stitch in dgit view: $@\n"; } - snags_maybe_bail(); + snags_maybe_bail_early(); my $work; @@ -1696,6 +1698,8 @@ sub cmd_convert_from_gbp () { } }; + ffq_check $work; + snags_maybe_bail(); update_head_checkout $old_head, $work, 'convert-from-gbp'; }