Noel L Yap wrote:
> 
> >I
> >don't have a clue as to what -j should do in combination with -C.
> 
> It seems you've been more thorough than I have.  Looking at it another way, "cvs
> up -C file"  should be equivalent to "cvs up -p -r <base-rev> file >file".  If
> other flags (eg "-j") were specified, the command should be equivalent to "cvs
> up -p -r <base-rev> file >file; cvs up <other-flags> file".
> 
> Noel

Are you sure about '<base-rev>'? From what I've seen so far, -C means 'clean
copy'. (it's not on my 1.10.5 copy, gotta upgrade).

By '<base-rev>', do you mean the revision last checked out, or the current
revision for the current sticky tag?

Also, how do these two scripts differ? (I'm not cvs-guru enough to know if they
do):
#1
rm file
cvs up <all-options> file

#2
cvs up -p -r <base-rev> file >file
cvs up <other-flags> file       // other-flags may be empty

And, if it can be done in a script, does it belong in cvs? :-)

Michael

p.s. Trivia question: What does this do? What should it do?

echo 'new file' > file
cvs add file
cvs update -C file

(note that script 1 leaves it missing, script 2 leaves it empty)
If you think 'just give an error, do nothing', then what if I'm
trying to clean up a module, not just a single file?)

Reply via email to