[Top][All Lists]

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

Re: Renaming a branch

From: Laine Stump
Subject: Re: Renaming a branch
Date: 03 May 2001 11:31:28 -0400
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

Jim Harkins <address@hidden> writes:

> Like an idiot I came up with a branch name that is not only too long and
> unwieldy, but it no longer accurately reflects it's contents.  Is there a
> good way to rename a branch?

As long as you can prevent other people from accessing the repository
while the script is running, you can just run an awk (perl, whatever
you're most comfortable) script that searches for the old branchname
in the ,v files and replaces it with the new branch name. To prevent
changing lines in the actual source that may coincidentally contain
the same name, only do it between the first line that matches
"^symbols" and the first line that matches "^locks" (I'm basing this
on a quick look at a ,v file).

> The only option I can think of is to create a new branch, populate it with
> my trunk at time t0, then merge in my crappy name, test, swear, test some
> more, then delete the original branch.  Is there a better way (like an awk
> script to frob all the ,v files in my Repository?)
> I don't want to merge my branch to the trunk, the trunk is a set of vendor
> code that gets modified for various projects.
> jim
> _______________________________________________
> Info-cvs mailing list
> address@hidden

reply via email to

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