Skip to content

Commit

Permalink
git-svn: fix revision order when XML::Simple is not loaded
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eric Wong authored and Junio C Hamano committed Feb 17, 2006
1 parent 3397f9d commit 1c6bbbf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contrib/git-svn/git-svn
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ sub svn_log_raw {

# if we have an empty log message, put something there:
if (@svn_log) {
$svn_log[0]->{msg} ||= "\n";
$svn_log[$#svn_log]->{msg} ||= "\n";
}
next;
}
Expand All @@ -538,15 +538,15 @@ sub svn_log_raw {
date => "$tz $Y-$m-$d $H:$M:$S",
author => $author,
msg => '' );
unshift @svn_log, \%log_msg;
push @svn_log, \%log_msg;
$state = 'msg_start';
next;
}
# skip the first blank line of the message:
if ($state eq 'msg_start' && /^$/) {
$state = 'msg';
} elsif ($state eq 'msg') {
$svn_log[0]->{msg} .= $_."\n";
$svn_log[$#svn_log]->{msg} .= $_."\n";
}
}
close $log_fh or croak $?;
Expand Down

0 comments on commit 1c6bbbf

Please sign in to comment.