[p4] Branch Names
Ivey, William
william_ivey at bmc.com
Thu Oct 26 08:29:50 PDT 2006
> -----Original Message-----
> From: perforce-user-bounces at perforce.com
> [mailto:perforce-user-bounces at perforce.com]On Behalf Of
> Vineet Venugopal
> Sent: Thursday, October 26, 2006 9:44 AM
> To: perforce-user at perforce.com
> Subject: [p4] Branch Names
>
>
> Hi ,
>
> A simple question
>
> 1. Can the perforce - rename strategy as mentioned in the cmd
> ref guide be used to rename a branch from say oldbranch to newbranch?
Yes. It's just an integrate (branch) followed by a delete. The
inputs can be any file or directory at any level (technically
it's the files under the directory that are affected, looks the
same though).
> 2. Also once the branch is renamed to newbranch can I
> recreate oldbranch using a totally different branch spec?
Branch specs don't create branches, integrate does. (The spec
is just a mapping tool to help you define the layout - you
don't even need it if the mapping is 1:1 between the source
and new branches.) But, sure. Be aware that you may need to
use the "allow re-adds" option if any of the new files have
the same path/name as the old ones. (Doesn't hurt to just use
the option anyway.)
-Wm
More information about the perforce-user
mailing list