login
Header Space

 
 

Re: git-fast-import

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Shawn O. Pearce <spearce@...>
Cc: Nicolas Pitre <nico@...>, <git@...>
Date: Tuesday, February 6, 2007 - 1:20 pm

On Tue, 6 Feb 2007, Shawn O. Pearce wrote:

I'm not so worried about the git date parsing routines (which are fairly 
solid) as about the fact that absolutely *tons* of people get rfc2822 
wrong.

And we'd never even see it, because gits date-parsing routines are very 
forgiving, and allow pretty much anything (and no, I'm not talking about 
approxidate(), which really *does* allow anything, I'm talking about the 
"strict" date parser). 

They allow pretty much any half-way valid date, exactly because people 
don't do rfc2822 right anyway (and because they are also meant to work 
even if you write the date by hand, like "12:34 2005-06-07").

And *particularly* when it comes to timezones, it just guesses. The whole 
daylight savings time thing is just too hard. And if no timezone exists, 
it will just take the current one, so things may *seem* like they work, 
but then two different people importing the *same* archive in two 
different locations will actually get different results!

THAT'S A BAD THING!

It's much better to specify the date so exactly that you simply cannot get 
different results with the same input.

Sure, you can still mess up the program that actually generates the data 
for gfi, and have bugs like that *there*, but at least they'd have to 
think a bit about it.

And the TZ problem is actually less likely if you have a strict TZ format. 
For example, when importing from CVS, the natural thing to do is to just 
always set TZ to +0000. Which gets you something reliable, and it won't 
depend on who did the import.

But hey, especially if it's a flag, and especially if it's *documented* 
that the date parsing will depend on the current timezone etc, then maybe 
it's all ok. It's certainly convenient to be able to give the date in any 
format. It's just very easy to get bugs when you allow any random crud..

		Linus
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
git-fast-import, Shawn O. Pearce, (Mon Feb 5, 10:31 pm)
Re: git-fast-import, Alex Riesen, (Tue Feb 6, 9:50 am)
Re: git-fast-import, Shawn O. Pearce, (Tue Feb 6, 1:43 pm)
Re: git-fast-import, Alex Riesen, (Tue Feb 6, 2:02 pm)
Re: git-fast-import, Andy Parkins, (Tue Feb 6, 5:28 am)
Re: git-fast-import, Linus Torvalds, (Tue Feb 6, 12:37 pm)
Re: git-fast-import, Shawn O. Pearce, (Tue Feb 6, 12:44 pm)
Re: git-fast-import, Daniel Barkalow, (Wed Feb 7, 12:45 am)
Re: git-fast-import, Horst H. von Brand, (Tue Feb 6, 9:17 pm)
Re: git-fast-import, Shawn O. Pearce, (Wed Feb 7, 1:46 am)
Re: git-fast-import, Linus Torvalds, (Tue Feb 6, 10:50 pm)
Re: git-fast-import, Johannes Schindelin, (Thu Feb 8, 5:34 pm)
Re: git-fast-import, Shawn O. Pearce, (Wed Feb 7, 1:53 am)
Re: git-fast-import, Horst H. von Brand, (Wed Feb 7, 6:18 pm)
Re: git-fast-import, Linus Torvalds, (Wed Feb 7, 6:39 pm)
Re: git-fast-import, Karl , (Wed Feb 7, 5:21 am)
Re: git-fast-import, Linus Torvalds, (Tue Feb 6, 1:24 pm)
Re: git-fast-import, Shawn O. Pearce, (Tue Feb 6, 5:40 am)
Re: git-fast-import, Aneesh Kumar K.V, (Tue Feb 6, 2:12 am)
Re: git-fast-import, Shawn O. Pearce, (Tue Feb 6, 2:18 am)
Re: git-fast-import, Daniel Barkalow, (Wed Feb 7, 12:55 am)
Re: git-fast-import, David Woodhouse, (Wed Feb 7, 9:38 am)
RE: git-fast-import, Raimund Bauer, (Wed Feb 7, 5:29 am)
Re: git-fast-import, Karl , (Wed Feb 7, 5:13 am)
Re: git-fast-import, Johannes Schindelin, (Wed Feb 7, 7:17 am)
Re: git-fast-import, Shawn O. Pearce, (Wed Feb 7, 6:55 pm)
Re: git-fast-import, Johannes Schindelin, (Wed Feb 7, 7:55 pm)
Re: git-fast-import, Linus Torvalds, (Thu Feb 8, 12:56 pm)
Re: git-fast-import, Shawn O. Pearce, (Thu Feb 8, 3:10 pm)
Re: git-fast-import, Karl , (Fri Feb 9, 4:49 am)
Re: git-fast-import, Linus Torvalds, (Fri Feb 9, 11:47 am)
Re: git-fast-import, Shawn O. Pearce, (Wed Feb 7, 8:12 pm)
Re: git-fast-import, Nicolas Pitre, (Tue Feb 6, 12:06 am)
Re: git-fast-import, Shawn O. Pearce, (Tue Feb 6, 1:48 am)
Re: git-fast-import, Linus Torvalds, (Tue Feb 6, 12:35 pm)
Re: git-fast-import, Shawn O. Pearce, (Tue Feb 6, 12:56 pm)
Re: git-fast-import, Linus Torvalds, (Tue Feb 6, 1:20 pm)
Re: git-fast-import, Nicolas Pitre, (Tue Feb 6, 2:53 pm)
Re: git-fast-import, David Woodhouse, (Wed Feb 7, 6:58 am)
Re: git-fast-import, Shawn O. Pearce, (Tue Feb 6, 4:09 pm)
Re: git-fast-import, Nicolas Pitre, (Tue Feb 6, 5:03 pm)
Re: git-fast-import, Shawn O. Pearce, (Tue Feb 6, 5:15 pm)
Re: git-fast-import, Nicolas Pitre, (Tue Feb 6, 5:42 pm)
Re: git-fast-import, Nicolas Pitre, (Mon Feb 5, 11:18 pm)
speck-geostationary