All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Mansfield <david@cobite.com>
To: Linus Torvalds <torvalds@osdl.org>
Cc: Git Mailing List <git@vger.kernel.org>,
	Thomas Glanzmann <sithglan@stud.uni-erlangen.de>
Subject: Re: new cvsps version fixes issues for cvs2git
Date: Thu, 26 May 2005 00:35:07 -0400	[thread overview]
Message-ID: <429551FB.60601@cobite.com> (raw)
In-Reply-To: <Pine.LNX.4.58.0505252111580.2307@ppc970.osdl.org>


> 
> Since the CVS information doesn't contain any timezone, it would be bogus
> to use one, and the only sane git conversion is to always use UTC. Using 
> the timezone of the converter is also bogus, since that just makes 
> different converters get different results.

The cvs log is now properly handled as UTC.  It wasn't before.  That's 
one good thing.  And yes, git conversion better always be UTC, no 
argument here.

> 
> So I'd much rather see you add a flag that just always does the native CVS
> time (ie UTC)?  Quite frankly, it's wrong to do anything else, exactly
> because it makes no sense to print out dates in a timezone that has no
> relevance (what relevance does Pacitic time have for somebody who
> committed something at 8AM Eastern? _None_).

It will always print in the localtime of the user running cvsps, not the 
timezone of the commiter (in fact, we don't know the timezone of the 
committer at all).  I hate committing something, running cvsps and 
having it tell me I'm about to commit in five hours, but I *do* see your 
point.

> 
> The fact is, if we depend on people doign "TZ=UTC", people will forget, 
> and then people will have different conversions.

That's true, that would be terrible.  But I'm arguing that the actual 
conversion program (which actually wants machine readable output) should 
make it happen.  If that means we need a shell-script wrapper than 
so-be-it.  By letting cvsps display in any timezone, including UTC, it 
can work for everyone (keep the policy out of the program).

> (My personal preference would be to _default_ to UTC, and instead have a
> special flag that says "use localtime to print stuff out", since 
> localtime really is the least relevant one most of the time)
> 

The thing you may be missing (and, hey, why not?) is that some people 
will actually still be using cvs, and cvsps to them is a tool that 
produces output for humans.  For you, it is a stone in the path to git's 
domination of the world.

I'll have to think about it.  At the very least a flag requesting UTC, 
or a flag requesting localtime makes sense.  Setting environment 
variables and then running a program always seemed a bit like abuse of 
global variables.

David


      reply	other threads:[~2005-05-26  4:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-26  4:02 new cvsps version fixes issues for cvs2git David Mansfield
2005-05-26  4:20 ` Linus Torvalds
2005-05-26  4:35   ` David Mansfield [this message]

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=429551FB.60601@cobite.com \
    --to=david@cobite.com \
    --cc=git@vger.kernel.org \
    --cc=sithglan@stud.uni-erlangen.de \
    --cc=torvalds@osdl.org \
    /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.