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

[PATCH] git-svn: show progress in working_head_info()

From
Ramkumar Ramachandra <artagnon@gmail.com>
Date
Jan 10, 2015, 13:21 UTC
Message-ID
<1420896096-15254-1-git-send-email-artagnon@gmail.com>

The working_head_info routine takes a very long time to execute on large repositories. The least we can do is to comfort users that some progress is being made.

Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
---
 I was worried because of the long wait, so I wrote this to convince
 myself that git-svn wasn't stuck.
 git-svn.perl | 3 +++
 1 file changed, 3 insertions(+)
diff --git a/git-svn.perl b/git-svn.perl
index 60f8814..6aa156c 100755
--- a/git-svn.perl
+++ b/git-svn.perl
@@ -2022,6 +2022,9 @@ sub working_head_info {
 			next;
 		}
 		next unless s{^\s*(git-svn-id:)}{$1};
+		my $chomped = $_;
+		chomp $chomped;
+		print "[Importing] $chomped\n";
 		my ($url, $rev, $uuid) = extract_metadata($_);
 		if (defined $url && defined $rev) {
 			next if $max{$url} and $max{$url} < $rev;
-- 
2.2.1
Next: Eric Wong
Message 1 of 3 in “git-svn: show progress in working_head_info()”
  1. git-svn: show progress in working_head_info()Ramkumar Ramachandra, Jan 10, 2015
  2. Eric WongJan 10, 2015
  3. Ramkumar RamachandraJan 14, 2015

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.