是否有一种简单的方法可以还原整个 P4 更改列表? [英] Is there an easy way to revert an entire P4 changelist?

查看:69
本文介绍了是否有一种简单的方法可以还原整个 P4 更改列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我检入了一个包含大量文件的变更列表(在 Perforce 中),我想恢复整个变更列表.有没有一种简单的方法可以一举还原"整个更改列表?

Let's say I checked in a changelist (in Perforce) with lots of files and I'd like to revert the entire changelist. Is there an easy way to "revert" the entire changelist in one fell swoop?

目前我对变更列表中的每个文件都做这样的事情:

Currently I do something like this for each file in the changelist:

  • p4 sync//path/to/file#n(其中n"是文件的先前版本)
  • cp 文件文件#n
  • p4 同步//path/to/file
  • p4 编辑//path/to/file
  • cp 文件#n 文件
  • rm 文件#n

您可以想象,这对于大型更改列表来说非常麻烦.

As you can imagine, this is quite cumbersome for a large changelist.

推荐答案

已发布的答案提供了正确的答案,但还要注意 P4V 中有一个实际的菜单选项现在可以为您执行此操作.它是最新的 2008.2 Beta,因此应该会在接下来的一三周内正式发布.

The posted answers provide correct answers, but note also that there is an actual menu option in P4V to do this for you now. It's in the latest 2008.2 Beta, and so should be officially released the the next week or three.

链接 提供了详细信息.

使用起来应该比之前的答案简单得多,但我还没有机会亲自尝试.

It should be a lot simpler to use than the earlier answers, but I've not had the opportunity to try it myself yet.

更新现已完全发布.请参阅 Perforce 下载.

Update This has now been fully released. See Perforce downloads.

这篇关于是否有一种简单的方法可以还原整个 P4 更改列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆