Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I rename a branch specification in perforce?

I would like to know how to rename a branch specification (aka, a "branch mapping") in perforce. The P4V client does not allow you to edit the branch spec name.

Is it safe to just add another branch specification, copy the settings and remove the old one?

like image 401
sorin Avatar asked Dec 16 '09 14:12

sorin


1 Answers

Perforce does not provide a mechanism to rename a branch specification. Perhaps they fear you may inadvertently break some scripts if you go and rename one?

Yes, it is safe to create a new one, copy the settings from the old and delete it (provided nothing is relying on a branch specification with that old name, of course).

like image 90
raven Avatar answered Sep 23 '22 14:09

raven