diff options
author | David D Kilzer <ddkilzer@kilzer.net> | 2007-11-10 22:10:33 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2007-11-17 13:28:21 -0800 |
commit | fede44b2e18c1e5985197913e8dcf5753f4eb99e (patch) | |
tree | fd4104387e7d65a3753effa4b46ea836ed87a22b /git-svn.perl | |
parent | 3caf320ba8fc8277b5875fe306efbfa333b92487 (diff) | |
download | git-fede44b2e18c1e5985197913e8dcf5753f4eb99e.tar.gz git-fede44b2e18c1e5985197913e8dcf5753f4eb99e.tar.xz |
git-svn log: fix ascending revision ranges
Fixed typo in Git::SVN::Log::git_svn_log_cmd(). Previously a command like
"git-svn log -r1:4" would only show a commit log separator.
Added 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-x | git-svn.perl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-svn.perl b/git-svn.perl index a5cf757cf..1872214de 100755 --- a/git-svn.perl +++ b/git-svn.perl @@ -3798,7 +3798,7 @@ sub git_svn_log_cmd { $c_max = $gs->rev_db_get($r_max); $c_min = $gs->rev_db_get($r_min); if (defined $c_min && defined $c_max) { - if ($r_max > $r_max) { + if ($r_max > $r_min) { push @cmd, "$c_min..$c_max"; } else { push @cmd, "$c_max..$c_min"; |