Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
git-svn: fix revision order when XML::Simple is not loaded
author
Eric Wong
<normalperson@yhbt.net>
Thu, 16 Feb 2006 19:47:51 +0000
(11:47 -0800)
committer
Junio C Hamano
<junkio@cox.net>
Fri, 17 Feb 2006 09:01:20 +0000
(
01:01
-0800)
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>
contrib/git-svn/git-svn
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
3397f9d
)
diff --git
a/contrib/git-svn/git-svn
b/contrib/git-svn/git-svn
index 62fc14fb0de5df23c889ee6106406639906a3002..ddd95798012d37025baa01cbd3fc6e2447b8696f 100755
(executable)
--- a/
contrib/git-svn/git-svn
+++ b/
contrib/git-svn/git-svn
@@
-523,7
+523,7
@@
sub svn_log_raw {
# if we have an empty log message, put something there:
if (@svn_log) {
# 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;
}
}
next;
}
@@
-538,7
+538,7
@@
sub svn_log_raw {
date => "$tz $Y-$m-$d $H:$M:$S",
author => $author,
msg => '' );
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;
}
$state = 'msg_start';
next;
}
@@
-546,7
+546,7
@@
sub svn_log_raw {
if ($state eq 'msg_start' && /^$/) {
$state = 'msg';
} elsif ($state eq 'msg') {
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 $?;
}
}
close $log_fh or croak $?;