info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What exactly is HEAD anyway?


From: Andrew DeFaria
Subject: Re: What exactly is HEAD anyway?
Date: Tue, 10 May 2005 16:25:45 GMT
User-agent: Mozilla Thunderbird 1.0.2 (X11/20050317)

The more I look into CVS the less I understand. Perhaps you can help me...

When using -r HEAD I do not seem to get the latest revision on the trunk:

   $ cvs log foo.c

   RCS file: /cvs/path/foo.c,v
   Working file: foo.c
   head: 1.2
   branch:
   locks: strict
   access list:
   symbolic names:
          DEV_2p1p0_20050503: 1.1.1.1.2.1
          REL_2p0p0-branch: 1.1.1.1.0.4
          DEV_3p0p0_20050425: 1.2
          ...
          REL_2p0p0_FCS: 1.1.1.1
          ...
   $ cvs status foo.c
   ===================================================================
   File: foo.c          Status: Up-to-date

     Working revision:    1.1.1.1
     Repository revision: 1.1.1.1 /cvs/path/foo.c,v
     Sticky Tag:          REL_2p0p0_FCS (revision: 1.1.1.1)
     Sticky Date:         (none)
     Sticky Options:      -ko

In particular here notice that head says 1.2 but the current working revision is 1.1.1.1. Doing:

   $ cvs diff --brief -r HEAD foo.c
   $

Does this mean that there is no difference between 1.1.1.1 and 1.2?!? However if I do:

   $ cvs diff --brief -r 1.2 foo.c
   Index: getmem.c
   ===================================================================
   RCS file: /cvs/path/foo.c,v
   retrieving revision 1.2
   retrieving revision 1.1.1.1
   diff --brief -r1.2 -r1.1.1.1
   Files /tmp/cvsvGa4M1 and /tmp/cvswGa4M1 differ
   $

Why is this so? Doesn't -r HEAD mean 1.2 in this instance?


--
So you're a feminist...Isn't that cute.

Attachment: Andrew.vcf
Description: Vcard


reply via email to

[Prev in Thread] Current Thread [Next in Thread]