[Top][All Lists]

[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 (Macintosh/20090302)

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 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, 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.
                 Consulting * Mentoring * Training in
    C/C++ * OOD * SW Development & Practices * Version Management
Version: GnuPG v1.4.8 (Darwin)
Comment: Using GnuPG with Mozilla -


reply via email to

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