“事实上,我毕竟不想让你跟踪那个文件……”我如何让 Perforce 倾听?

发布于 2024-09-28 08:13:21 字数 468 浏览 5 评论 0原文

有时我会“标记为添加”并将文件添加到 Perforce,但实际上我不想让 Perforce 担心。

有没有办法恢复它,使其在 P4V 中显示为“未跟踪”项目?

请参阅我的示例:

我错误地添加了 mil.icomil3.ico。我只是想让它们恢复到 test.ico 的样子,即。被 Perforce 忽略:

alt text

即使我保存文件的副本,然后删除,然后将它们放回去(所有这是一个严重的无聊),P4V 仍然知道它们有历史并标记它们,如下所示:

alt text

我只想要 Perforce当我告诉它时,不要管文件。

Sometimes I "Mark for Add" and add files to Perforce which I actually didn't want Perforce to worry about.

Is there a way to revert it so it just goes back to showing in P4V as an "untracked" item?

See my example:

I've added mil.ico and mil3.ico by mistake. I just want them to go back to looking like test.ico, ie. ignored by Perforce:

alt text

Even if I save a copy of the files, then delete, then put them back (all of which is a serious bore), P4V still knows they have a history and marks them as shown:

alt text

I just want Perforce to leave a file alone when I tell it to.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

孤独患者 2024-10-05 08:13:21

如果您想从 perforce 中删除文件的最后痕迹,唯一的机会是通过 p4 obliterate。这将不可逆地删除文件修订甚至文件的完整历史记录,并且仅适用于管理员权限。我不知道是否可以通过 p4v 获得擦除,在命令行上您会发出:

cd directory_of_accident
p4 obliterate accidentally_submitted_file

并且如果看起来您和强制同意文件忘记

p4 obliterate -y accidentally_submitted_file

密封问题。

If you want to remove the last traces of the files from perforce, your only chance is through p4 obliterate. This will irreversibly remove file revisions or even file's complete history from perforce and will only work with administrator privileges. I don't know if obliterate is available through p4v, on the command line you would issue:

cd directory_of_accident
p4 obliterate accidentally_submitted_file

and if it looks like you and perforce agree on the file to forget

p4 obliterate -y accidentally_submitted_file

to seal the issue.

流殇 2024-10-05 08:13:21

您可以从 Perforce 仓库中删除这些项目。请记住,Perforce 会想要删除该文件的本地副本,因此您应该将其保存在其他位置,在 Perforce 中删除该文件,然后将本地版本移回。

You can delete the items from the Perforce depot. Keep in mind Perforce will want to delete your local copy of that file so you should save it off in a different location, delete the file in Perforce and move the local version back.

辞旧 2024-10-05 08:13:21

您是否通过 Depot 选项卡或 Workspace 选项卡查看文件结构?看起来它可能是您的 Depot 选项卡。

尝试转到“工作区”选项卡,然后单击“过滤器”图标(看起来更像漏斗)并确保选择“显示不在库中的文件”。

希望通过“工作空间”选项卡(而不是“仓库”)查看将隐藏已删除的文件,并选择适当的过滤器将显示您的非 Perforce 文件。

Are you looking at your file structure through the Depot tab or the Workspace tab? It looks like it may be your Depot tab.

Try going to your Workspace tab then click on the Filter icon (looks more like a funnel) and ensure that "Show Files Not in Depot" is selected.

Hopefully looking through the Workspace tab, as opposed to Depot, will hide the deleted files, and selecting the appropriate filters will show your non-Perforce files.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文