Renaming files in Perforce?

前端 未结 5 1633
别那么骄傲
别那么骄傲 2021-02-14 22:44

Every time I rename a file in Perforce it actually deletes an old file and adds a new one. As a result the new file doesn\'t share the old\'s file history. Is there an easy way

5条回答
  •  -上瘾入骨i
    2021-02-14 23:29

    Are you using P4V? It doesn't really delete and add it, it will branch it and then delete the old file (you will see that the new file shows up with the #branch action). That way, the new file will retain the history. It's sometimes not immediately visible, but if you choose to "show branching history", you will see the full history of the file, including everything that happened prior to its renaming.

提交回复
热议问题