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

Re: [PATCH v2] git-remote-mediawiki: bugfix for pages w/ >500 revisions

From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Date
Sep 24, 2013, 08:19 UTC
Message-ID
<vpqk3i67hu1.fsf@anie.imag.fr>
In-Reply-To
<CAETqRCjo3_nr0+Jh_0XTPZysfzhtGaeFMGswog--Era31jQo1Q@mail.gmail.com>
Benoit Person <benoit.person@gmail.com> writes:
Show 11 quoted lines
>> d17cf5f3a32f07bf (tests: Introduce test_seq;  2012-08-03)
>>
>>> +       do
>>> +               echo "creating revision $i"
>>
>> Do you want to end this line with '&&'?
> The way it's intended is that it's more a debug information to see how
> it's going on (creating >500 revs is *quite* long). If I understand it
> correctly, using '&&' would mean that the return value of the echo
> statement will be tested for success ? Anyway, I am not sure it makes
> sense to fail on a "debug echo" ?

I don't think you should bother with such reasoning: just put the && everywhere.

Without the &&, it's OK in the current version, but what if someone adds something before the echo? Then it becomes

git something-important && echo debug git something-else-important

and a failure on the first call is unnoticed because of the missing && afterwards.

The echo is not supposed to fail, so either the && does not change anything, or something went terribly wrong and you'd rather notice it.

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Previous: Benoit Person
Message 5 of 5 in “git-remote-mediawiki: bugfix for pages w/ >500 revisions”
  1. git-remote-mediawiki: bugfix for pages w/ >500 revisionsBenoit Person, Sep 23, 2013
  2. Matthieu MoySep 23, 2013
  3. Eric SunshineSep 23, 2013
  4. Benoit PersonSep 24, 2013
  5. Matthieu MoySep 24, 2013

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.