[p4] cvs2p4 - Creating uppercase branch names

Weintraub, David david.weintraub at bofasecurities.com
Thu Aug 24 13:02:27 PDT 2006


I changed the code to allow me to put a two column WANTLINES array. The
first is the CVS branch and the second optional field is the Perforce
branch.

I made a change in genmetadata where you were using $FLASH_BRANCH to
change the name of the branch and added a couple of lines to do the same
if I had defined a different Perforce branch from the CVS branch.

It's about 90% complete, but I have one bug that seems to be allowing
for a few non-wanted branches to shine through. Some of the versions are
not getting the new branch name. I'm trying to track that down.

-----Original Message-----
From: rmg at foxcove.com [mailto:rmg at foxcove.com] On Behalf Of
rmg at perfortify.com
Sent: Thursday, August 24, 2006 3:58 PM
To: perforce-user at perforce.com
Cc: Weintraub, David
Subject: Re: cvs2p4 - Creating uppercase branch names


Hi David 'n all...

> Date: Thu, 24 Aug 2006 08:58:09 -0400
> From: "Weintraub, David" <david.weintraub at bofasecurities.com>
> Subject: [p4] cvs2p4 - Creating uppercase branch names
> To: Perforce Users <perforce-user at perforce.com>
> 
> Is there a way using cvs2p4 to mangle the names of branches? That is, 
> you have a branch "foo-bar" in CVS which becomes "BAR-FOO" in
Perforce?
> 
> I'd like to make all branch names uppercase as specified in the book 
> Practical Perforce. I'd also like to clean up branch names making 
> something like Branch-1-4-3 to CELOX-1.4.3.
> 
> Would it be possible to take a checkpoint, modify the checkpoint file,

> then rebuild the database? Or, would it be easier to modify the cvs2p4

> programs to do just that?

Either approach should be doable, but it should be a pretty easy mod for
cvs2p4. If you want, I'll put in a switch for the "fold all label names
to uppercase", and some way to specify arbitrary mappings like
"Branch-m-n-o -> CELOX-m.n.o" and so on.

Thanks!,

  - rmg


More information about the perforce-user mailing list