From: Junio C Hamano <gitster@pobox.com>
To: Nick Edelen <sirnot@gmail.com>
Cc: Nicolas Pitre <nico@cam.org>,
sam@vilain.net, git@vger.kernel.org,
"Shawn O. Pearce" <spearce@spearce.org>,
Johannes Schindelin <Johannes.Schindelin@gmx.de>,
Andreas Ericsson <exon@op5.se>,
Christian Couder <christian@couder.net>,
Jeff King <peff@peff.net>
Subject: Re: [PATCH] Shift object enumeration out of upload-pack
Date: Wed, 10 Jun 2009 00:20:19 -0700 [thread overview]
Message-ID: <7vr5xssggc.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: c77435a80906091650j7709d006j64749c9692c25b29@mail.gmail.com
Nick Edelen <sirnot@gmail.com> writes:
> Offload object enumeration in upload-pack to pack-objects, but fall
> back on internal revision walker for shallow interaction. Aside from
> architecturally making more sense, this also leaves the door open for
> pack-objects to employ a revision cache mechanism. Test t5530 updated
> in order to explicitly check both enumeration methods.
>
> Signed-off-by: Nick Edelen <sirnot@gmail.com>
> Acked-by: Nicolas Pitre <nico@cam.org>
>
> ---
> err, I guess you wanted me to resubmit this?
Strictly speaking, _I_ don't, but _you_ might ;-)
I doubt that the proposed commit log message justifies the claim
"architecturally making more sense" with concrete enough discussion, but
I'll let it pass.
Your log message got much better this time, by hinting that this is a
preparatory step to introduce the rev-cache mechanism. It is good way to
defend a patch saying that it is not just a useless code churn, but it is
a necessary step to get us closer to a more useful goal.
> diff --git a/t/t5530-upload-pack-error.sh b/t/t5530-upload-pack-error.sh
> index f5102b9..22eec24 100755
> --- a/t/t5530-upload-pack-error.sh
> +++ b/t/t5530-upload-pack-error.sh
> ...
> @@ -51,11 +52,20 @@ test_expect_success 'fsck fails' '
> test_expect_success 'upload-pack fails due to error in rev-list' '
>
> ! echo "0032want $(git rev-parse HEAD)
> -00000009done
> +0034shallow $(git rev-parse HEAD^)00000009done
> 0000" | git upload-pack . > /dev/null 2> output.err &&
> grep "waitpid (async) failed" output.err
> '
>
> +test_expect_success 'upload-pack fails due to error in pack-objects
> enumeration' '
You have a wrapped line here. Please check the setting of your MUA,
especially if you are planning to send more patches to the list in the
future.
No need to resend; I fixed this up when applying.
Thanks.
prev parent reply other threads:[~2009-06-10 7:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-08 1:34 [PATCH] Shift object enumeration out of upload-pack Nick Edelen
2009-06-08 2:12 ` Nicolas Pitre
2009-06-08 2:36 ` Junio C Hamano
2009-06-09 23:50 ` Nick Edelen
2009-06-10 7:20 ` Junio C Hamano [this message]
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=7vr5xssggc.fsf@alter.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=Johannes.Schindelin@gmx.de \
--cc=christian@couder.net \
--cc=exon@op5.se \
--cc=git@vger.kernel.org \
--cc=nico@cam.org \
--cc=peff@peff.net \
--cc=sam@vilain.net \
--cc=sirnot@gmail.com \
--cc=spearce@spearce.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.
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).