[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: CVS/Tag with tag and date
From: |
Mark D. Baushke |
Subject: |
Re: CVS/Tag with tag and date |
Date: |
Sun, 28 May 2006 11:49:42 -0700 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Jeremie Le Hen <address@hidden> writes:
> please Cc: me in your replies as I am not subscribed to this list.
>
> When I use "cvs up -r BRANCH", CVS/Tag contains "TBRANCH".
> When I use "cvs up -D date", CVS/Tag contains "Ddate".
>
> I seem to recall that when I use "-r BRANCH -D date" together, the
> CVS/Tag file contains both "TBRANCH Ddate".
Nope. It will contain TBRANCH and the files will be checked out
as of the state of the BRANCH on the date.
> However, I have just tried this, but the Tag file just contains
> "TBRANCH". Therefore, I can't easily create a diff against a file
> in a particular branch at a particular date.
You could use this:
cvs update -r BRANCH -D date file
cvs diff -r BASE -r HEAD file
> I gave a try with both cvs 1.11 and 1.12, but the behaviour seems
> to stay the same.
Yes, it is operating as intended.
If you are using cvs 1.12, then
cvs diff -u -rBRANCH:2005-08-22 -rBRANCH file
or
cvs diff -u -rBRANCH:2005-08-22 -rBRANCH:today file
will give you a diff of the 'file' between 2005-08-22 and today.
-- Mark
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (FreeBSD)
iD8DBQFEefDGCg7APGsDnFERArqtAJ9KCyTWEQe4yXIif3GwNYk9uyOmIwCg0mv4
hhAlhZ55GPJ2fBwUnCE8In0=
=l/2Q
-----END PGP SIGNATURE-----