info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Date diff including too much


From: Mark D. Baushke
Subject: Re: Date diff including too much
Date: Thu, 06 Jul 2006 10:52:41 -0700

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jim Hyslop <address@hidden> writes:

> Richard Boehme wrote:
> > Hi there. I'm trying to use CVS to get a diff of my project from
> > 6/30/2006. Reading the manpage, I get:
> > 
> > cvs -q diff -r dev -D "2006-06-30"
> > cvs -q diff -r dev -D "6 days ago"
> > cvs -q diff -r dev -D "2006/06/30"
> > 
> > as likely things that should give me good results.
> > 
> > However, it tells me that nearly everything in my project has changed,
> > which is obviously not true. (it includes several static library files).
> > 
> > Even
> > 
> > cvs -q diff -r dev -D "2 hours ago"
> > 
> > produces the same results.
> > 
> > Do I have the wrong syntax, or is cvs/diff going haywire on me. BTW, the
> > CVS server is ahead a timezone (one hour).
> 
> Timezone shouldn't be a factor - CVS always uses UTC.

Internally, CVS uses UTC. For -D switches, the time is considered to be
in localtime, so adding a UTC to the date will get you the time in UTC.

> The command you've issued should show a difference between the tag 'dev'
> and the date specified. So, if 'dev' was applied a long time ago, then
> you'll get a lot of changes.
> 
> 'cvs di -D "6 days ago" -r HEAD' should get you what you want.

        -- Mark
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.4 (FreeBSD)

iD8DBQFErU3pCg7APGsDnFERAryoAJ46picaAuSVPLbPOp8FjlwqmZNslgCfTLOv
hYdzt0m9zdcJz6+6Kq0iB3E=
=4TNq
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]