Integrating moved files in perforce

前端 未结 5 2303
太阳男子
太阳男子 2021-02-19 06:35

Say I created a branch in perforce of our codebase. Here is the branch spec:

//depot/code/main/... //depot/code/branch/...

Then, in the branch,

5条回答
  •  一生所求
    2021-02-19 07:09

    Perforce 2009.1 has proper renames, which might help with this - probably, and in any case only for future renames. See Perforce 2009.1 release notes, in particular:

    #177023 * **
        The new 'p4 move' command allows for better support for
        renaming files.  A file must be already opened for 'edit'
        or 'add' in order to be moved.  Moved files can be synced,
        resolved and diffed against the repository just like files
        opened for 'edit'.  See 'p4 help move' for more info.
    

    You can add the rename into the branch spec. Then at least the integrations will be automatic - even if the branch spec will be even longer and more complicated.

提交回复
热议问题