如何恢复P4未切换效果

发布于 2025-01-31 08:42:46 字数 261 浏览 2 评论 0原文

我从本地台式机上搁置了带有Changeet Ex的文件。 244444。

然后,我运行以下命令来解散另一台服务器上的文件:

p4 unshelve -s 244444

此待处理更改包含3个文件。现在,在测试后,我想恢复所有更改(由于更改244444)。

我该怎么做?

我尝试了:

p4 revert -c 244444

但这似乎无济于事。

I shelved files from my local desktop with changeset ex. 244444.

Then I ran the below command to unshelve the files on my other server:

p4 unshelve -s 244444

This pending changeset contains 3 files. Now after testing, I want to revert all the changes (due to changeset 244444).

How can I do this?

I tried:

p4 revert -c 244444

but that doesn't seem to help.

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

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

发布评论

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

评论(1

梦里人 2025-02-07 08:42:46

当您运行p4 unshelve时,文件是从的 的搁置的转换师,您使用-s in a指定等待改变者。如果您没有指定编号的变更者,它们将被解雇到默认的变换师中。如果这些文件已经以编号的待处理的变更者打开,则它们将保留在该变更者中,并且Unshelve操作将安排决议,将搁置的更改与您未决的更改合并。

要查看您已打开文件的待处理的更改师,请执行:

p4 opened

要恢复默认转换师中的所有文件,请执行:

p4 revert -c default //...

如果不确定哪个等待更改者,则无法弄清楚它从p4打开(或文件列表太大),但是您想恢复所有可能从Change 244444脱离的所有内容,您可以在Change 244444中获取文件列表,然后将其管道到P4还原

p4 -F %depotFile% files @=244444 | p4 -x - revert

When you run p4 unshelve, the files are unshelved from the shelved changelist you specify with -s, into a pending changelist. If you don't specify a numbered changelist, they'll be unshelved into the default changelist. If the files are already open in a numbered pending changelist, they'll remain in that changelist, and the unshelve operation will schedule resolves to merge the shelved changes with your pending changes.

To see which pending changelist(s) you have files opened in, do:

p4 opened

To revert all files in the default changelist, do:

p4 revert -c default //...

If you're not sure which pending changelist the files are in, and you're not able to figure it out from p4 opened (or the list of files is too large), but you want to revert anything that might have been unshelved from change 244444, you could take the list of files in change 244444 and pipe those to p4 revert:

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