必须的将搁置的变更列表从主分支移动到分支?
我想知道是否有任何方法可以将在 /main/ 上编辑创建的变更列表移动到分支 /dev/branch?
我有六个这样的变更列表,其中有很多文件。我搁置了所有文件,想将它们移至分支机构继续在那里工作。如果可能的话,我更愿意直接在 P4V 中执行此操作。
我将 P4V 2011.1 与 2010.2 P4 服务器一起使用。
I wonder if there is any way to move a Changelist which was created editing on /main/ to a branch /dev/branch?
I have six such Changelists with a lot of files in them. I shelved all files and would like to move them to the branch to keep working there. I would prefer to do this directly in P4V, if possible.
I'm using P4V 2011.1 with the 2010.2 P4 server.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
从 Perforce 2013.1 开始,您可以使用分支规范或流作为映射,将文件搁置在一个分支中并将其取消搁置到另一个分支中。
这是文档,其中描述了新的
-b
和-S
选项。Starting with Perforce 2013.1, you can shelve a file in one branch and unshelve it into another, using a branch spec or stream as the mapping.
Here is the documentation which describes the new
-b
and-S
options.我相信您可以右键单击已编辑的文件并选择
重命名/移动...
。如果这不起作用,您可能必须使用命令行并执行
p4 move -f old_file new_file
并移动到另一个分支。注意:就其价值而言,这适用于分支,但不适用于流。
I believe that you can right-click on an edited file and choose
Rename/Move...
.If that does not work, you'll probably have to use the command line and do
p4 move -f old_file new_file
and move to another branch.Note: For what it's worth, this works for branches but not streams.
我自己没有尝试过,但我想这应该是可能的:
来自 p4 手册:
I haven't tried this myself, but I would imagine this should be possible:
p4 unshelve -s <number>
from the command lineFrom the p4 manual:
您还可以使用“p4 move -f /main/... /dev/branch/...”来完成此操作。
You can also use "p4 move -f /main/... /dev/branch/..." to accomplish this.
/main/
上提交/dev/branch/
/main/
上的变更列表这使您能够解决如果有冲突的话。
缺点是退出
/main/
上的更改列表,这不太好。/main/
/dev/branch/
/main/
This allows you to resolve conflicts if there are any.
The disadvantage is the backing out of the changelist on
/main/
which is not pretty.