[p4] cvs2p4 - Creating uppercase branch names

rmg@perfortify.com rmg at perfortify.com
Thu Aug 24 12:57:30 PDT 2006


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