在 Perforce 中重命名文件? [英] Renaming files in Perforce?

查看:51
本文介绍了在 Perforce 中重命名文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每次我在 Perforce 中重命名文件时,它实际上会删除一个旧文件并添加一个新文件.因此,新文件不会共享旧文件的历史记录.有没有简单的方法?

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 doing it?

推荐答案

您在使用 P4V 吗?它并没有真正删除和添加它,它会分支它然后删除旧文件(您将看到新文件显示为#branch 操作).这样,新文件保留历史记录.它有时不会立即可见,但如果您选择显示分支历史记录",您将看到文件的完整历史记录,包括重命名之前发生的所有事情.

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.

这篇关于在 Perforce 中重命名文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆