On Tue, Jul 18, 2000 at 03:07:38PM -0500, Robert Jacob wrote:
> Mike,
>
> I tried your procedure on a scratch repository and it works great.
>
> But I should have been more specific in my question. I want to move not just
> the head to a branch but all versions between my last best Tag and the head.
>
> If I currently have:
>
> revision Tag
> 1.5 BETA3
> 1.4 BETA2
> 1.3 RELEASE
> 1.2 preREL
> 1.1 start
>
> What I want at the end is
>
> 1.3.2.3 (was 1.5) BETA3
> 1.3.2.2 (was 1.4) BETA2
> 1.3.2.1 (copy of 1.3 ?) BETA_branch
> 1.3 RELEASE
> 1.2 preREL
> 1.1 start
>
> So now doing "cvs co module" gets you version 1.3.
> Is that possible without directly editing the repository?
Why do you really want that? It really doesn't gain you anything. Sure,
it may "look nice" and give you a "warm fuzzy feeling" but outside of that,
it doesn't mean anything.
Let's say you end up with something that looks like:
1.6 AFTER_OOPS (same as RELEASE)
1.5 BETA3 / OOPS
1.4 BETA2
1.3.2.1 (really no tag, but same as 1.5)
1.3 RELEASE / BETA_branch (the take would really be on this ver)
1.2 preREL
1.1 start
You lose nothing.
You still have your history of check ins (very important).
You can still do co -r BETA2 and get what you mean. Same with BETA3.
That's what's important.
Unless you plan on branching off of the older versions at BETA2 and BETA3,
you really don't gain anything by trying to move all the other stuff
around. You can still maintain all of the information you need without
much effort. It's really not worth the effort to make it all nice and
pretty.
Outside of that, you *could* write a perl script that would get histories,
get each of the old versions, check them onto the new branch, then admin -o
the 1.4/1.5 stuff. But, by the time you designed and debug the procedure,
not to mention a program to actually do it, you would have wasted a good
portion of time that is better spent just not worrying about minor history
inconvenience and just moving forward. [Hmm.... sorta sounds like what
the writers of X-men might have said. ;-]
mrc
--
Mike Castle Life is like a clock: You can work constantly
[EMAIL PROTECTED] and be right all the time, or not work at all
www.netcom.com/~dalgoda/ and be right at least twice a day. -- mrc
We are all of us living in the shadow of Manhattan. -- Watchmen