如何告诉 P4SCC 忽略文件?
几个月前,我开始了一个新项目,被迫使用 perforce(双关语)。我有各种分布式和整体式 VCS 的经验,特别是在 Visual Studio 中使用 Ankh 作为 SC 插件的 SVN...也就是说,我一直在回避一些..perforce 的怪癖,通过应用您可以找到的各种解决方法,主要是在 SO 上。不过这个问题我不想这么快放弃,所以我希望你们中的一些人可以帮助我解决这个问题。
我在 VS 2010 中安装了 P4SCC 插件,至少我打开了解决方案,它似乎按预期工作。但由于 VS 创建了一堆元文件,即 *.vspscc 和其他 scc 文件,该插件会在“待签入”窗口中列出这些文件。在 P4V 中,您只需恢复标记为“添加”的文件,它们将被忽略,即使它们保留在文件系统中......但这里不是这样。显然 P4 并不认为这些文件是“添加”或“更改”的,因此不会恢复。由于这些文件不是解决方案或项目的一部分(至少根据VS),它们不会显示在解决方案资源管理器中,因此我无法使用“文件->源代码管理->从源代码管理中删除文件”选项。
我尝试了不同的方法来忽略这些文件,因为我不想将它们签入存储库。遗憾的是,我只能找到将文件从 P4V 视图中取出的方法,如下所述: 你能在 Perforce 中“忽略”文件吗?自从我告诉 P4SCC 以来要使用与 P4V 中相同的工作空间,我希望这些更改也适用于它……但 perforce 的行为再一次没有达到我的预期。
仅仅检查这些该死的东西的诱惑越来越大(虽然很容易就有 100 多个......),但这似乎是错误的。所以我的问题是:
有没有办法,无论多么 hacky,让 P4SCC 忽略这些文件,或以这种方式忽略任何文件?
I started on a new project a few months ago and am forced to use perforce (pun intended). I have experience with a variety of distributed and monolithic VCS, especially SVN with Ankh as SC plugin in visual studio...that said, I have been evading some..quirks perforce has by applying various workarounds you can find, mainly here on SO. This issue though is something I do not want to give up on so fast, so I hope some of you guys can help me out with it.
I installed the P4SCC plugin in my VS 2010, and at least I got to open the solution and it seems to work as expected. But since VS creates a bunch of metafiles, namely *.vspscc and other scc files, the plugin lists thos in the "pending checkins" window. In P4V you can just revert files marked for add and they will be ignored, even though they remain in the file system...not so here. Apparently P4 does not consider the files as "added" or "changed", so will not revert. Since the files are not part of the solution or projects (at least according to VS), they do not show up in the solution explorer and therefor I cannot use the "File->Source Control->Remove file from source control" option.
I tried different things to ignore those files, since I do not want to check them into the repository. Sadly, I only find ways to get files out of the view in P4V as described here:
Can you "ignore" a file in Perforce? Since I told P4SCC to use the same workspace as I do in P4V, I expected those changes to apply to it as well...but once again perforce has NOT behaved as I would have expected.
The temptation is getting bigger to just check in the darn things (alghough there's easily 100+ of them...), but that just seems wrong. So my question is:
Is there any way, no matter how hacky, to get P4SCC to ignore these files, or any files in that manner?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在联系 Perforce 支持后,我不得不了解到显然没有办法告诉 P4SCC 忽略文件。
After contacting Perforce support I had to learn that there apparently is not way to tell P4SCC to ignore files.