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

Re: git-cvs-import retries

From
Junio C Hamano <junkio@cox.net>
Date
Feb 18, 2006, 18:42 UTC
Message-ID
<7vvevco6e3.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<mj+md-20060218.130645.5680.albireo@ucw.cz>
Martin Mares <mj@ucw.cz> writes:
> But it did and I finally understand why: _line() can exit not only
> by return, but also by falling over when readline() returns undef.

Ah, you are right and I feel stupid. It's been a while since I wrote real Perl code the last time, and forgot that "the last evaluation" rule when I was reading the code.

It did not help that one of the languages I use in my day-job (which I am too ashamed to even name) uses "if fell off at the end return undef" rule X-<.

Previous: Martin MaresNext: Martin Mares
Message 4 of 5 in “git-cvs-import retries”
  1. Martin MaresFeb 17, 2006
  2. Junio C HamanoFeb 18, 2006
  3. Martin MaresFeb 18, 2006
  4. Junio C HamanoFeb 18, 2006
  5. Fix retries in git-cvsimportMartin Mares, Feb 18, 2006

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.