From: Junio C Hamano <gitster@pobox.com>
To: "Ævar Arnfjörð Bjarmason" <avarab@gmail.com>
Cc: git@vger.kernel.org, Derrick Stolee <stolee@gmail.com>
Subject: Re: What's cooking in git.git (Mar 2019, #04; Wed, 20)
Date: Thu, 21 Mar 2019 18:46:23 +0900 [thread overview]
Message-ID: <xmqq7ecssgpc.fsf@gitster-ct.c.googlers.com> (raw)
In-Reply-To: <87va0cd1zp.fsf@evledraar.gmail.com> (=?utf-8?B?IsOGdmFyIEFy?= =?utf-8?B?bmZqw7Zyw7A=?= Bjarmason"'s message of "Thu, 21 Mar 2019 10:13:14 +0100")
Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:
> graph_version = *(unsigned char*)(data + 4);
> <<<<<<< HEAD
> if (!graph_version || graph_version > 2) {
> error(_("unsupported graph version %X"),
> graph_version);
> =======
> if (graph_version != GRAPH_VERSION) {
> error(_("commit-graph version %X does not match version %X"),
> graph_version, GRAPH_VERSION);
> return NULL;
> }
>
> hash_version = *(unsigned char*)(data + 5);
> if (hash_version != oid_version()) {
> error(_("commit-graph hash version %X does not match version %X"),
> hash_version, oid_version());
> >>>>>>> commit-graph-fix-segfault-and-exit-3
> return NULL;
> }
>
> Needs to be resolved as:
>
> graph_version = *(unsigned char*)(data + 4);
> if (!graph_version || graph_version > 2) {
> error(_("commit-graph the graph version %X is unsupported"),
> graph_version);
> return NULL;
> }
>
> I.e. there's a test that greps out "graph version".
Yikes.
Given the common ancestor version's phrasing, and also the updated
phrasing of the other message since we started supporting v2 of the
commit-graph file, I resolved this message to
"unsupported commit-graph version %X"
instead. Of course, I wasn't expecting the test to be depending on
the exact error message's phrasing X-<.
Thanks.
next prev parent reply other threads:[~2019-03-21 9:46 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-20 3:13 What's cooking in git.git (Mar 2019, #04; Wed, 20) Junio C Hamano
2019-03-20 4:56 ` Junio C Hamano
2019-03-20 11:23 ` Thomas Gummerer
2019-03-20 22:05 ` Rohit Ashiwal
2019-03-20 22:56 ` Thomas Gummerer
2019-03-20 23:07 ` Rohit Ashiwal
2019-03-21 0:31 ` Junio C Hamano
2019-03-20 22:42 ` Ævar Arnfjörð Bjarmason
2019-03-21 0:46 ` Junio C Hamano
2019-03-21 5:19 ` Junio C Hamano
2019-03-21 9:13 ` Ævar Arnfjörð Bjarmason
2019-03-21 9:46 ` Junio C Hamano [this message]
2019-03-21 10:37 ` Ævar Arnfjörð Bjarmason
2019-03-21 11:14 ` Duy Nguyen
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=xmqq7ecssgpc.fsf@gitster-ct.c.googlers.com \
--to=gitster@pobox.com \
--cc=avarab@gmail.com \
--cc=git@vger.kernel.org \
--cc=stolee@gmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.