git-svn: fix revision order when XML::Simple is not loaded
Thanks to Emmanuel Guerin for finding the bug. Signed-off-by: Eric Wong <normalperson@yhbt.net> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:

committed by
Junio C Hamano

parent
3397f9df53
commit
1c6bbbf37b
@ -523,7 +523,7 @@ sub svn_log_raw {
|
|||||||
|
|
||||||
# if we have an empty log message, put something there:
|
# if we have an empty log message, put something there:
|
||||||
if (@svn_log) {
|
if (@svn_log) {
|
||||||
$svn_log[0]->{msg} ||= "\n";
|
$svn_log[$#svn_log]->{msg} ||= "\n";
|
||||||
}
|
}
|
||||||
next;
|
next;
|
||||||
}
|
}
|
||||||
@ -538,7 +538,7 @@ sub svn_log_raw {
|
|||||||
date => "$tz $Y-$m-$d $H:$M:$S",
|
date => "$tz $Y-$m-$d $H:$M:$S",
|
||||||
author => $author,
|
author => $author,
|
||||||
msg => '' );
|
msg => '' );
|
||||||
unshift @svn_log, \%log_msg;
|
push @svn_log, \%log_msg;
|
||||||
$state = 'msg_start';
|
$state = 'msg_start';
|
||||||
next;
|
next;
|
||||||
}
|
}
|
||||||
@ -546,7 +546,7 @@ sub svn_log_raw {
|
|||||||
if ($state eq 'msg_start' && /^$/) {
|
if ($state eq 'msg_start' && /^$/) {
|
||||||
$state = 'msg';
|
$state = 'msg';
|
||||||
} elsif ($state eq 'msg') {
|
} elsif ($state eq 'msg') {
|
||||||
$svn_log[0]->{msg} .= $_."\n";
|
$svn_log[$#svn_log]->{msg} .= $_."\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
close $log_fh or croak $?;
|
close $log_fh or croak $?;
|
||||||
|
Reference in New Issue
Block a user