info-cvs
[Top][All Lists]
Advanced

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

Re: Recoving branch point tag?


From: Paul Sander
Subject: Re: Recoving branch point tag?
Date: Wed, 3 Nov 2004 14:48:41 -0800

On a file-by-file basis, you can discover the sprout point version number
for any branch.  You do this by looking up the RCS magic branch number,
which has the form <sprout>.0.<n> where there is always an odd number of
periods.

where <sprout> is the sprout point version number, and <n> is the branch
number (containing no periods) spawning from that point.

In the event that branches were created outside of CVS (i.e. RCS commands
were used directly) then penultimate 0 (and the period following it) is
missing.  This also occurs with vendor branches, but for those the sprout
point is always version 1.1.

Once you have an exhaustive list of files and sprout points, you can try
to discover the tag that was applied to the files by seeing which tags
apply to all of the files at the discovered places.  Alternatively, you
can use the list to apply a tag after the fact to identify the sprout point.

>--- Forwarded mail from address@hidden

>Imagine I've got module foo which I've branched at tag X, and I
>branch off that in turn by doing something like:

>cvs get -r X foo
>cd foo
>cvs tag -b Y
>cvs update -r Y

>I do some work in the sandbox, commit the files, then blow away the
>sandbox.  Is it now possible, from looking at the logs, to recover the
>information that X is the base of the Y branch?

>For a given file, it's easy to see the branching structure with
>respect to revision numbers.  But, each file in the module will have
>its own set of revision numbers, and there can be many tags which
>correspond to a given revision.  My suspicion is that the information
>I seek is not recoverable from the data stored in the repository.  Am
>I right?

>I guess this is one of the things subversion will address?

>--- End of forwarded message from address@hidden





reply via email to

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