From: Ramkumar Ramachandra <artagnon@gmail.com>
To: Git List <git@vger.kernel.org>
Cc: Eric Wong <normalperson@yhbt.net>
Subject: [PATCH] git-svn: show progress in working_head_info()
Date: Sat, 10 Jan 2015 08:21:36 -0500 [thread overview]
Message-ID: <1420896096-15254-1-git-send-email-artagnon@gmail.com> (raw)
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 reply other threads:[~2015-01-10 13:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-10 13:21 Ramkumar Ramachandra [this message]
2015-01-10 22:21 ` [PATCH] git-svn: show progress in working_head_info() Eric Wong
2015-01-14 22:40 ` Ramkumar Ramachandra
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1420896096-15254-1-git-send-email-artagnon@gmail.com \
--to=artagnon@gmail.com \
--cc=git@vger.kernel.org \
--cc=normalperson@yhbt.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).