summaryrefslogtreecommitdiff
path: root/git-svn.perl
diff options
context:
space:
mode:
authorDavid D Kilzer <ddkilzer@kilzer.net>2007-11-10 22:10:34 -0800
committerEric Wong <normalperson@yhbt.net>2007-11-17 13:28:21 -0800
commit60f3ff12573e411476f7a32ab13bbb9b8063c8f7 (patch)
treeb9bf330eb03132bf7d918e1f59c2987dbaec02fb /git-svn.perl
parentfede44b2e18c1e5985197913e8dcf5753f4eb99e (diff)
downloadgit-60f3ff12573e411476f7a32ab13bbb9b8063c8f7.tar.gz
git-svn log: include commit log for the smallest revision in a range
The "svn log -rM:N" command shows commit logs inclusive in the range [M,N]. Previously "git-svn log" always excluded the commit log for the smallest revision in a range, whether the range was ascending or descending. With this patch, the smallest revision in a range is always shown. Updated tests for ascending and descending revision ranges. Signed-off-by: David D Kilzer <ddkilzer@kilzer.net> Acked-by: Eric Wong <normalperson@yhbt.net>
Diffstat (limited to 'git-svn.perl')
-rwxr-xr-xgit-svn.perl6
1 files changed, 3 insertions, 3 deletions
diff --git a/git-svn.perl b/git-svn.perl
index 1872214dec..506e1a605d 100755
--- a/git-svn.perl
+++ b/git-svn.perl
@@ -3799,9 +3799,9 @@ sub git_svn_log_cmd {
$c_min = $gs->rev_db_get($r_min);
if (defined $c_min && defined $c_max) {
if ($r_max > $r_min) {
- push @cmd, "$c_min..$c_max";
+ push @cmd, "--boundary", "$c_min..$c_max";
} else {
- push @cmd, "$c_max..$c_min";
+ push @cmd, "--boundary", "$c_max..$c_min";
}
} elsif ($r_max > $r_min) {
push @cmd, $c_max;
@@ -3980,7 +3980,7 @@ sub cmd_show_log {
my (@k, $c, $d, $stat);
my $esc_color = qr/(?:\033\[(?:(?:\d+;)*\d*)?m)*/;
while (<$log>) {
- if (/^${esc_color}commit ($::sha1_short)/o) {
+ if (/^${esc_color}commit -?($::sha1_short)/o) {
my $cmt = $1;
if ($c && cmt_showable($c) && $c->{r} != $r_last) {
$r_last = $c->{r};