Sankaranarayanan K V wrote:

> Hi,
> 
> (1) How do I refer to the trunk in commands like 
> 
>   cvs update -j <branch>
> 
>   cvs diff -r <branch>
> 
> where branch can be either a proper branch or the trunk itself.
> 
> (2) What exactly does HEAD mean?
>     Is it the head revision of the trunk or of the sand box branch?
        [smc]  
        Depends on what command you run.

        for "cvs diff", HEAD means the head revision of the branch sticky
tag.

        for all other commands, as far as I can tell, it means the head
revision of the trunk.

        There are comments in sanity.sh indicating people rely on this
broken behavior, which I find hard to believe.  (If it said there are "some
number of people", I could believe it by setting "some number" to zero. :-)

        I had posted a patch to bug-cvs to make HEAD work the same for "cvs
diff" some time ago.  I can probably dig it up, but I didn't see it on
deja.com...(I guess they don't monitor bug-cvs...)

        I had posted a similar patch to introduce TRUNK which behaved the
same as my fixed HEAD patch, except preserving the broken behavior of HEAD
that people were supposedly relying on.  Don't know what happened to either
of those patches...they appeared to meet with silent death.

        -- steve

Reply via email to