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

[PATCH]: git-svnimport: if a limit is specified, respect it

From
AKAnand Kumria <wildfire@progsoc.org>
Date
Mar 25, 2006, 22:43 UTC
Message-ID
<11433266261442-git-send-email-wildfire@progsoc.org>
Hi,

git-svnimport will import the same revision over and over again if a limit (-l <rev>) has been specified. Instead if that revision has already been processed, exit with an up-to-date message.

Please apply.

Thanks, Anand

Signed-off-by: Anand Kumria <wildfire@progsoc.org>
---
 git-svnimport.perl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
66e05a5854eb269e3e61fcaa9f53a4b2a45b17d8
diff --git a/git-svnimport.perl b/git-svnimport.perl
index 639aa41..114784f 100755
--- a/git-svnimport.perl
+++ b/git-svnimport.perl
@@ -851,7 +851,7 @@ sub commit_all {
 
 $opt_l = $svn->{'maxrev'} if not defined $opt_l or $opt_l > $svn->{'maxrev'};
 
-if ($svn->{'maxrev'} < $current_rev) {
+if ($opt_l < $current_rev) {
     print "Up to date: no new revisions to fetch!\n" if $opt_v;
     unlink("$git_dir/SVN2GIT_HEAD");
     exit;
-- 
1.2.4
Message 1 of 1 in “: git-svnimport: if a limit is specified, respect it”
  1. : git-svnimport: if a limit is specified, respect itAnand Kumria, Mar 25, 2006

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.