info-cvs
[Top][All Lists]
Advanced

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

Re: CVS Branch Revision Help


From: Jim Hyslop
Subject: Re: CVS Branch Revision Help
Date: Sat, 25 Apr 2009 12:45:07 -0400
User-agent: Thunderbird 2.0.0.21 (Macintosh/20090302)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mohan, Inder wrote:
> I am very new to CVS I am creating a test branch for myself. It created
> successfully but when I am trying to see it through rlog command it
> shows me following output with different revisions
> 
> address@hidden ~]$ cvs rlog -h -l test|grep ?I test_1_2_3
[...]
> 
> And why it is showing me revision number 1.1.0.248 two times.

The short answer is: until you are an expert at CVS, do not attempt to
interpret the meaning of the numbers in a revision. CVS manages them,
and has done so quite well for many years.

The long answer (which will help you become more expert at CVS :=) is:
you are looking at the revision numbers assigned to different files. If
you modify the grep expression to look for the file name as well, you
will see the files to which the revision numbers apply.

Revision numbers for any given file are completely independent of
revision numbers for any other file. So it is entirely possible - and
safe - for two files to have the same revision number.

Sections 4 and 5 of the manual,
http://ximbiot.com/cvs/manual/cvs-1.11.23/cvs.html give a nicely
detailed explanation of how revision numbering works.

On a slight tangent - when creating a branch, always create a symbolic
tag for the base of the branch, then create the branch based on the
symbolic tag. That way you will always have a way of finding the branch
point (and believe me, one day you *will* need to know the branch point).

- --
Jim Hyslop
Dreampossible: Better software. Simply.     http://www.dreampossible.ca
                 Consulting * Mentoring * Training in
    C/C++ * OOD * SW Development & Practices * Version Management
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAknzPhMACgkQLdDyDwyJw+OcQwCePKXKAl9MzcRcSFWuySaJQ+ow
PJIAn2vBehkK14C1cGBpCtNxNga8BDdN
=erfq
-----END PGP SIGNATURE-----




reply via email to

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