Thanks Alan.  There were a few things I did not tell you about what I 
was doing (I was a bit fried), and I now have a working solution to 
my problem.  Here it is for all to enjoy.

Basically, I was attempting to implement a client side diff for the 
Macintosh using MacCVS.  This will eventually be an enhancement for 
my CWCVS CodeWarrior integration tool.  MacCVS does a number of 
things under the hood, most notably expanding resource forks, so the 
-p option was not really what I was looking for (and I believe that 
Alex stated recently that it does not work correctly in 
MacCVS/WinCVS).  checkout also occurred to me, but it seems to 
produce deep trees and CVS directories which I would then have to 
wade through and clean up.  Building the command would also be fairly 
involved (I actually did it but it was ugly).

The fairly elegant solution I came up with on the bike ride home 
(isn't that when we always thing of the Good Stuff?) was to simply 
move the local file to a temp directory, do a cvs update <file> and 
swap the files!  I can then diff the files to my heart's content.  I 
have this solution up and running now and visual/resource diffs from 
cvs are now in the tool.

I suspect that there are a few glitches still to be worked out 
(changing versions etc. cvs update -r<rev> <file> may be better) but 
this is looking pretty good right now.

Anyway, thanks for taking the time to respond.

At 10:28 -0800 3/17/00, [EMAIL PROTECTED] wrote:
>The command cvs export requires either a tag or a date, as it is designed to
>produce a reproducible output, such as you might ship to a customer.  You can
>get the result you want by using cvs checkout instead.  Another 
>option is to use
>the -p option of checkout to send the file to stdout:
>
>% cvs export -r 1.5 -p module/path/file > targetdir/file
>
>You may also wish to checkout  http://www.loria.fr/~molli/cvs-index.html  and
>download the CVS reference manual (Cederqvist et al).
>
>Good luck!
>Alan Thompson
>
>
>
>
>
>
>Richard Wesley <[EMAIL PROTECTED]> on 03/16/2000 04:44:48 PM
>
>To:   [EMAIL PROTECTED]
>cc:    (bcc: Alan Thompson/Orincon)
>Subject:  File extraction
>
>
>
>Hey all,
>
>I would like to be able to extract a particular version of a file
>from cvs into a directory.   I tried
>
>cvs export -d targetDir -r1.5 module/path/file
>
>but cvs complains that I need to specify a symbolic tag.  If I
>replace -r1.5 with -Dtoday, it works, but this probably gets the
>version from the main branch, which may not be what I want.
>
>1) Why does cvs prevent me from using actual version numbers?
>2) Is there some other way to perform this operation?
>
>TIA,
>
>- rmgw
>
>http://www.electricfish.com/hawkfish/
>
>----------------------------------------------------------------------------
>Richard Wesley           Electric Fish, Inc.       [EMAIL PROTECTED]
>
>"They have forgotten the simplest of pleasures - that of the child and
>   the unopened box." - Dukhat in "Babylon 5: Atonement"


- rmgw

http://www.electricfish.com/hawkfish/

----------------------------------------------------------------------------
Richard Wesley           Electric Fish, Inc.       [EMAIL PROTECTED]

"They have forgotten the simplest of pleasures - that of the child and
  the unopened box." - Dukhat in "Babylon 5: Atonement"

Reply via email to