我应该向 Perforce 提交未更改的文件吗?
我正在使用 Perforce 来集成两个代码线。在生成的更改列表中,有些文件被标记为打开以进行集成,但实际上并未更改。
我应该提交这些未更改的文件还是应该恢复它们?
我想恢复它们,因为我不希望这些未更改的文件污染更改列表。
但是,如果我提交它们,我有一种感觉,Perforce 可能会利用这个“事实”(文件已被集成)来进行未来的集成。
I'm using Perforce to integrate two codelines. In the resulting changelist, there are files which are marked as opened for integration, but have not actually changed.
Should I submit these unchanged files or should I revert them?
I want to revert them because I don't want these unchanged files to pollute the changelist.
But, if I submit them, I have a feeling that Perforce might have a use of this "fact" (that the files have been integrated) for future integration.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
无需提交未更改的文件。我什至不明白为什么这个选项存在。 Perforce 只需要知道您对文件所做的更改。您签出文件但未对其执行任何操作这一事实是无关紧要的。恢复未更改的文件。正如你所说,不要污染修订历史记录。
There is no need to submit unchanged files. I can't even understand why the option exists. Perforce only needs to know about changes you make to files. The fact that you checked a file out, but did nothing to it, is irrelevant. Revert unchanged files. As you said, don't pollute the revision history.
是的,您应该提交它们。这将创建集成记录来记录更改已“集成”(这可能并不意味着目标上发生了实际更改)。
Yes, you should submit them. This will create the integration record to record that the changes have been "integrated" (which may not mean actual changes occurred on the target).
我总是在更改列表中恢复未更改的文件。我不记得有什么错误的后果。
(幸运的是,现在我们切换到 git。)
I always reverted unchanged files in my changelists. I can't remember any wrong consequences.
(Fortunately, now we switched to git.)