标记为删除的文件实际上也已在文件系统上替换,想要标记为编辑
在 Perforce 中,我删除了一些文件,这些文件记录在(未提交的)变更列表中。然后,我在文件系统中添加了替换文件,位置与已删除的文件完全相同。由于恢复它们只是取回旧版本,因此我如何修改更改列表,以便将文件标记为使用新版本进行编辑?
In Perforce, I deleted a number of files, which was recorded in an (unsubmitted) changelist. I then added replacement files in the filesystem, in the exact same locations as those that were deleted. As reverting them just fetches the old version back, how can I amend the changelist so that the files are as marked for edit with the new version?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以运行
p4 revert -k
从更改列表中清除文件,而无需将旧副本提取回工作区。然后只需对其运行p4 edit
即可。You can run
p4 revert -k
to clear the files from the changelist without fetching the old copies back into your workspace. Then just runp4 edit
on them.