On Fri, Jun 23, 2000 at 06:04:23AM -0700, Stephen Cameron wrote:
> John P. Cavanaugh wrote, regarding his preference for "main" or "trunk"
> over ".trunk":
> 
> > Partly for personal preference of liking main or trunk better than .trunk.
> > But it also allows for main.latest (which I will admit is only to facilitate
> > similarity with other branches)
> 
> So, it's partly for the sake of consistency.  Well, ".trunk" is perfectly
> consistent too.  It's a branch tag name for the trunk.  If you want the
> latest stuff from a branch, you use the branch tag name.  If you want the
> latest stuff from the trunk, you use the branch tag name: ".trunk"

Actually its not consistent with other branch names because they dont
begin with a ., but I dont really care.  For our use here I would just
redefine it to be main and life would go on.

> These changes were made to rcs.c, and TAG_ORIGIN was #defined to
> ".origin", (to avoid confusion with BASE, I didn't use ".base"
> but of course we can #define TAG_ORIGIN to be whatever everybody
> likes)

I like origin, good idea.

Can you reference branchname.base for example to get a diff from
where you last updated/checked out from??

> Anyway, one thing I haven't figured out is what to do for the case
> of the trunk, e.g. ".trunk.origin", (and/or maybe just ".origin" by
> itself)  The super easy but surely wrong implementation is just
> return "1.1" in that case maybe?  I'm not sure how to implement it
> correctly though.  

You are right, returning 1.1 is definitely not the right answer.  Instead
probably returning the first revision in the file is the correct answer.
And yes at times they are different, especially for those of us that
migrated from rcs -> hms -> cvs.  We have stuff that started on 150.1


-----------------------------------------------------------------------
    John Cavanaugh                          Agilent Technologies
    R&D Manager                             1400 Fountaingrove Pkwy
    CAD Data Store                          Santa Rosa, CA 95403-1799

    Email: [EMAIL PROTECTED]           Phone:  707-577-4780
                                                707-577-3948 (Fax)
-----------------------------------------------------------------------
           Unix is a user-friendly operating system. It just 
          picks its friends more carefully than others.
                                                   -- Unknown
-----------------------------------------------------------------------

Reply via email to