[ On Wednesday, February 16, 2000 at 14:43:26 (-0800), |}avid (opeland wrote: ]
> Subject: Why does CVS treat removed files so specially?
>
> Note that main.c DOES NOT get tagged.

It's not supposed to be.

Tags are used primarily to tag "releases" (i.e. to give a symbolic name
to all of the revisions of a specific version of the module).  (Well
that and to name branches too.)  Since a removed file no longer exists
in the "current" version of a module you don't want it to be a member of
a current release -- which it would be by definition of having a tag.

If you do want the file to be present in the current release then don't
remove it.  :-)

>  Even if you 'cvs tag -F some_tag main.c'
> it does not get tagged.

You don't ever want it to be tagged.  Trust me!

>  You can ONLY tag the new (dead) revision, via 
> 'cvs tag -r 1.2 main.c',

You definitely do not want to do that.  You never want to have a tag on
a 'dead' revision!  All hell will break loose!  Well, maybe not that
dramatic, but it'll sure screw up your release management.

> also, doing commands like 'cvs log' and 'cvs stat' (with no file arguments) do
> not produce output for removed files.

I should hope not.  (well actually they will if you ask them to report
on a revision of the file that did exist previously with '-r' or '-d')

> This makes it extremely difficult to do ANYTHING in batch mode with CVS

I use CVS in batch mode almost all of the time and it works perfectly
for me!  ;-)

What exactly is it that you are trying to accomplish?  Perhaps if you
can describe your requirements one of us can either explain how you
might go about meeting them with CVS, or suggest an alternative
approach.

> and I
> can think of no explanation for it (other than convienience while coding CVS
> features/throwback to RCS).

Check out the "Attic" node of the manual.

> At the very least there should be an option to cvs that says "Run the command
> on removed/dead revisions"

No, I don't think so!

-- 
                                                        Greg A. Woods

+1 416 218-0098      VE3TCP      <[EMAIL PROTECTED]>      <robohack!woods>
Planix, Inc. <[EMAIL PROTECTED]>; Secrets of the Weird <[EMAIL PROTECTED]>

Reply via email to