info-cvs
[Top][All Lists]
Advanced

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

Re: Asking CVS if a repository/module/tag exists.


From: Arcin Bozkurt - Archie
Subject: Re: Asking CVS if a repository/module/tag exists.
Date: Tue, 28 Aug 2001 12:17:49 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2) Gecko/20010726 Netscape6/6.1

you can use the -n option to cvs...
copying from man cvs:

-n     Do  not  change  any files.  Attempt to execute the
             cvs_command, but only  to  issue  reports;  do  not
             remove,  update,  or  merge  any existing files, or
             create any new files.

      -t     Trace program execution; display  messages  showing
             the  steps  of  cvs  activity.  Particularly useful
             with -n to explore the potential impact of an unfa­
             miliar command.

John Daniel Doucette wrote:

Hi,

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
Canada
B3H 2R1

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


_______________________________________________
Info-cvs mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/info-cvs







reply via email to

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