git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 2/2] git-svn: Correctly report max revision when following deleted paths

From
Alex Vandiver <alexmv@mit.edu>
Date
May 6, 2009, 20:18 UTC
Message-ID
<1241641133-6974-2-git-send-email-alexmv@mit.edu>
In-Reply-To
<1241641133-6974-1-git-send-email-alexmv@mit.edu>

Report the maximum found revision in the range, instead of the minimum changed revision.

Signed-off-by: Alex Vandiver <alexmv@mit.edu>
---
 git-svn.perl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/git-svn.perl b/git-svn.perl
index 5836dde..eebcf0f 100755
--- a/git-svn.perl
+++ b/git-svn.perl
@@ -4471,7 +4471,7 @@ sub gs_fetch_loop_common {
 				my $ok;
 				$self->get_log([$longest_path], $min, $hi,
 				               0, 1, 1, sub {
-				               $ok ||= $_[1];
+				               $ok = $_[1];
 				               $revs{$_[1]} = _cb(@_) });
 				if ($ok) {
 					print STDERR "r$min .. r$ok OK\n";
-- 
1.6.3.rc4.225.g060aa4
Previous: Alex VandiverNext: Eric Wong
Message 2 of 3 in “git-svn: Fix for svn paths removed > log-window-size revisions ago”
  1. 1/2 git-svn: Fix for svn paths removed > log-window-size revisions agoAlex Vandiver, May 6, 2009
  2. 2/2 git-svn: Correctly report max revision when following deleted pathsAlex Vandiver, May 6, 2009
  3. Eric WongMay 10, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.