From: Daniel Barkalow <barkalow@iabervon.org>
To: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Cc: Junio C Hamano <gitster@pobox.com>, Len Brown <lenb@kernel.org>,
git@vger.kernel.org
Subject: Re: warning: no common commits - slow pull
Date: Sun, 17 Feb 2008 12:46:03 -0500 (EST) [thread overview]
Message-ID: <alpine.LNX.1.00.0802171236560.5496@iabervon.org> (raw)
In-Reply-To: <alpine.LSU.1.00.0802171449230.30505@racer.site>
On Sun, 17 Feb 2008, Johannes Schindelin wrote:
> Hi,
>
> On Sat, 16 Feb 2008, Daniel Barkalow wrote:
>
> > I wonder if the problem is that something isn't getting reinitialized
> > for the second connection. It's not a separate invocation of fetch-pack,
> > and I can't say for sure that it's sending the right info to the server
> > when the statics in builtin-fetch-pack.c are left over from the earlier
> > call. This would particularly explain the information that hitting
> > ctrl-c and trying again fixes it.
>
> Oh, that should be it! After all, the code in get_rev() in
> builtin-fetch-pack.c marks commits as SEEN and COMMON and POPPED.
>
> So I guess you'd need to set something like
>
> struct commit_list *rev_list_orig;
> ...
> rev_list_orig = rev_list;
>
> before
>
> while ((sha1 = get_rev())) {
>
> in the function find_common(), and then, after the while() loop, do
> something like
>
> while (rev_list_orig) {
> clear_commit_marks(rev_list->item,
> COMPLETE | COMMON | COMMON_REF | SEEN | POPPED);
> rev_list_orig = rev_list_orig->next;
> }
>
> possibly free()ing the rev_lists in the process.
What's currently confusing me, which is probably why I haven't been able
to reproduce the problem, is how we don't have the newly-received commits
as still interesting. Clearly there's some way to end up with them
either not being applicable or being already marked, but I'm not seeing
it.
(There's a good change that we could fix the problem with your loop, but
I'd like to have a test case to make sure it's fixed and stays fixed)
-Daniel
*This .sig left intentionally blank*
next prev parent reply other threads:[~2008-02-17 17:46 UTC|newest]
Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-11 1:07 warning: no common commits - slow pull Len Brown
2008-02-11 1:44 ` Junio C Hamano
2008-02-17 3:52 ` Daniel Barkalow
2008-02-17 14:57 ` Johannes Schindelin
2008-02-17 17:46 ` Daniel Barkalow [this message]
2008-02-17 17:54 ` Junio C Hamano
2008-02-17 19:27 ` Johannes Schindelin
2008-02-17 20:41 ` Daniel Barkalow
2008-02-11 1:53 ` Theodore Tso
2008-02-11 2:39 ` Len Brown
2008-02-11 2:49 ` Junio C Hamano
2008-02-11 3:55 ` Theodore Tso
2008-02-15 21:43 ` Len Brown
2008-02-16 21:22 ` Johannes Schindelin
2008-02-25 21:59 ` Florian Weimer
2008-02-25 23:32 ` Daniel Barkalow
2008-02-26 19:38 ` Len Brown
2008-02-26 20:47 ` Nicolas Pitre
2008-02-26 23:45 ` Daniel Barkalow
2008-02-27 5:12 ` Junio C Hamano
2008-02-27 6:29 ` Junio C Hamano
2008-02-27 19:28 ` Daniel Barkalow
2008-02-27 20:53 ` Junio C Hamano
2008-02-27 21:26 ` Daniel Barkalow
2008-02-28 0:43 ` Shawn O. Pearce
2008-02-28 8:50 ` Shawn O. Pearce
2008-02-29 14:44 ` Jon Loeliger
2008-02-29 17:14 ` Daniel Barkalow
2008-02-28 0:47 ` Junio C Hamano
2008-02-28 15:53 ` Daniel Barkalow
2008-02-28 16:10 ` [PATCH] Always use the current connection's remote ref list in git protocol Daniel Barkalow
2008-02-28 17:52 ` warning: no common commits - slow pull Junio C Hamano
2008-02-28 18:36 ` Daniel Barkalow
2008-02-11 15:54 ` Florian Weimer
2008-02-11 21:13 ` Nix
-- strict thread matches above, loose matches on Subject: below --
2008-03-07 1:35 David Brownell
2008-03-08 1:22 ` Daniel Barkalow
2008-03-08 22:48 ` David Brownell
2008-03-08 22:58 ` Daniel Barkalow
2008-03-08 23:25 ` David Brownell
2008-03-08 23:27 ` Daniel Barkalow
2008-03-09 18:47 ` Daniel Barkalow
2008-03-10 17:18 ` David Brownell
2008-03-10 17:40 ` Daniel Barkalow
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
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.LNX.1.00.0802171236560.5496@iabervon.org \
--to=barkalow@iabervon.org \
--cc=Johannes.Schindelin@gmx.de \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=lenb@kernel.org \
/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.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).