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

Re: [PATCH] git-cvsimport: allow author-specific timezones

From
Chris Rorvick <chris@rorvick.com>
Date
Oct 16, 2012, 02:26 UTC
Message-ID
<CAEUsAPY3fJJSzX8WPRVQPNOF0A0KAMCXr1u0ZzjEFvXDF=v6JA@mail.gmail.com>
In-Reply-To
<7vpq4jws4d.fsf@alter.siamese.dyndns.org>
On Mon, Oct 15, 2012 at 12:40 PM, Junio C Hamano <gitster@pobox.com> wrote:
>> diff --git a/t/t9604-cvsimport-timestamps.sh b/t/t9604-cvsimport-timestamps.sh
>> new file mode 100644
>
> Huh?  What happened to the executable bit we saw earlier?
Uh, yeah.  Sorry about that.
Show 7 quoted lines
>> +test_expect_success 'check timestamps are UTC (TZ=Australia/Sydney)' '
>> +
>> +    TZ=America/Chicago git cvsimport -p"-x" -C module-2 module &&
>
> This look identical to the first one, but even with a trivial change
> to use Australia/Sydney instead of Chicago, I am not sure what the
> test buys us.

This is left over from when I was using the script to test the "use local timezone" option. It was useless there, too, but did provide some symmetry. :-) Removed.

It occurred to me that the success of the unit test depends on the host platform's zoneinfo database. I think this problem is inherent with this functionality. Should the unit test attempt to detect support for the used timezones and short circuit if this fails? Not sure exactly how I'd do this, but wondering if it's worth thinking about.

I've made all the other recommended changes, I'll resubmit shortly.
Thanks,
Chris
Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 6 in “git-cvsimport: allow author-specific timezones”
  1. git-cvsimport: allow author-specific timezonesChris Rorvick, Oct 15, 2012
  2. Junio C HamanoOct 15, 2012
  3. Chris RorvickOct 16, 2012
  4. Junio C HamanoOct 16, 2012
  5. Jeff KingOct 16, 2012
  6. Junio C HamanoOct 16, 2012

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.