[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: -D date_spec and branches
From: |
Øyvind A . Holm |
Subject: |
Re: -D date_spec and branches |
Date: |
Thu, 29 May 2003 05:11:40 +0200 (CEST) |
On 2003-05-28 15:41-0700 Kevin Layer wrote:
> How do I reference the revisions on a branch for a specific date?
>
> cvs diff -D "2 days ago"
>
> always seems to refer to the trunk, and not the branch I'm on.
cvs upd -r mybranch
cvs diff -D "2001-05-17 16:12Z" -D "2002-01-21 18:12" myfile.c
cvs diff -D "2001-05-17 16:12" -D "1 month ago" myfile.c yourfile.
cvs diff -D "2001-05-17 16:12" -D "1 year 2 months ago" *.h
cvs diff -D "5 years 2 months 3 weeks ago" -D "18:12"
Lots of combinations available. By placing a Z after the HH:MM the time
is specified in GMT, otherwise it’s local time.
If you don’t run the first update command, all the diffs will be done on
the main branch.
Regards,
Øyvind
-----------
cat /dev/urandom >SCO