本文介绍了如何获取我的本地更改列表并将其发送给 Perforce 中的其他人?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何获取我的本地更改列表并将其发送给 Perforce 中的其他人?更具体地说,我想将未提交的更改从本地待处理更改列表发送到另一个用户的待处理更改列表.

How can I grab my local changelist and send it to someone else in Perforce? More specifically, I would like to send unsubmitted changes from a local pending changelist to another user's pending changelist.

推荐答案

set P4DIFF=C:\cygwin\bin\diff.exe
p4 diff -du -c 12345 > patch-to-head.diff

# On Other machine
patch -p1 < patch-to-head.diff

我可能对那里的 env var 有误,您可能需要对 diff 文件进行一些修正,但总体思路是生成 GNU 统一 Diff,您可以将其发送给可以使用 GNU 补丁的人应用它.

I may be wrong on the env var there, and you might have to do some fixups on the diff file, but the general idea is that you generate a GNU Unified Diff, that you can send to people that can use GNU patch to apply it.

这篇关于如何获取我的本地更改列表并将其发送给 Perforce 中的其他人?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 04:11