info-cvs
[Top][All Lists]
Advanced

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

How to script extraction of a single file?


From: Bryce Nesbitt (spam account)
Subject: How to script extraction of a single file?
Date: Tue, 11 Nov 2003 18:54:40 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031007

I'm writing a script to process a file stored in CVS, and have ran into something awkward. All I want to do is extract a read-only copy of a file stored in cvs. But:


/usr/bin/cvs -lf -Qd /tmp/cvsroot_test co -r1.2 module/file.zip
Requires write access to the repository.

/usr/bin/cvs -lf -Qd /tmp/cvsroot_test export -r1.2 module/file.zip
Requires a symbolic tag, not a revision number.

/usr/bin/cvs -lf -Qd /tmp/cvsroot_test co -p -r1.2 module/file.zip
Is slow because of the pipe.



Is there an easy way to just extract a single file from a cvs repository, without the hassles described above?

               -Bryce Nesbitt






reply via email to

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