Martin Roehrig wrote:
> Larry Jones schrieb:
> > Peter Wolfe writes [about HEAD meaning the head of the current branch
> > rather than the HEAD of the trunk for diff]:
> > >
> > > Hmm ... while that might be the design intent my observations are that
> even
> > > this is broken:
> >
> > I think you're right. It looks to me like what's happening is that diff
> > only interprets HEAD as the head of the current branch if the file has
> > actually been checked in on the branch; if the file has been branched
> > but hasn't actually been checked in on the branch, HEAD is interpreted
> > as the head of the trunk instead of the branch point.
>
> To solve the problems and misunderstandings around this subject, what do
> you
> think about introducing a new built-in tag (say TRUNK) that does the same
> for the
> main trunk as a branch tag does for the branch (or should do...), namely
> always
> refer to the latest revision on the main trunk (TRUNK) resp. branch
> (branch tag),
> consistently in all suitable cvs commands? (I hope my understanding of
> branch
> tags is correct so far.)
[smc] I like this idea, and have suggested this
in the past. I have a patch which I believe
makes HEAD work right for "cvs diff" and I
have also made a patch at one time that
introduced TRUNK that worked just like I
wanted HEAD to work but didnt disturb the
current behavior of HEAD. If anyone is interested
in these patches, I can send them.(I'd post them
again, but nobody was ever interested before,
so I dont' want to waste the time to try to find
them unless someone is actually interested.)
-- steve