如何恢复P4未切换效果
我从本地台式机上搁置了带有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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当您运行
p4 unshelve
时,文件是从的 的搁置的转换师,您使用-s
, in a指定等待改变者。如果您没有指定编号的变更者,它们将被解雇到默认的变换师中。如果这些文件已经以编号的待处理的变更者打开,则它们将保留在该变更者中,并且Unshelve操作将安排决议,将搁置的更改与您未决的更改合并。要查看您已打开文件的待处理的更改师,请执行:
要恢复默认转换师中的所有文件,请执行:
如果不确定哪个等待更改者,则无法弄清楚它从
p4打开
(或文件列表太大),但是您想恢复所有可能从Change 244444脱离的所有内容,您可以在Change 244444中获取文件列表,然后将其管道到P4还原
: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:
To revert all files in the default changelist, do:
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 top4 revert
: