[Top][All Lists]

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

Asking CVS if a repository/module/tag exists.

From: John Daniel Doucette
Subject: Asking CVS if a repository/module/tag exists.
Date: Tue, 28 Aug 2001 15:43:59 +0000


Given a <repository>, <module>, and <tag> is there a polite way to ask CVS if the combination exists, without actually checking it out, that would work in a make file. I.e. the command should fail if one of the three supplied parameters are incorrect, but succeed otherwise. Currently I am using this construct in a make file, which works, but seems rather brutish.

cvs -d <repository> -r checkout -p -r <tag>  <module>

If the repository/tag/module is wrong it does fail, but if it is ok you get a large amount of stuff spewed to the screen. Redirecting outout to a file helps a bit. I couldn't find anything appropriate in cvs status or cvs log.

John Daniel Doucette, Sr. Software Designer

J. J. MacKay Canada Limited
Halifax R & D Office
1046 Barrington Street, 1st Floor
Halifax, Nova Scotia
B3H 2R1

Phone           902.423.7727  x222
Fax             902.422.8108
Web             www . jjmackay . ca
Email           john . doucette @ jjmackay . ca

reply via email to

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