为什么命令Diff2不能工作

本文关键字:工作 不能 Diff2 命令 为什么 | 更新日期: 2023-09-27 18:09:48

如果我们将bool taggedOutput设置为true,则命令Diff2不会在TaggedOutputl中给出假定的输出,但如果我们将其设置为false,则在文本TextOutput上返回结果没有问题,那么我如何解决此问题

代码:

P4Command command = new P4Command(ps, "diff2", false, new String[] { "-ds", depotpathleft, depotpathright });
Perforce.P4.Options op= new Options();
op.Add("-u","");
P4CommandResult result= command.Run(op);
TaggedObjectList list = (result.TaggedOutput);

为什么命令Diff2不能工作

这是'diff2'命令的已知行为。您可以向Perforce技术支持提出此问题,以便他们在将来更改此行为时通知您。

目前,我认为你唯一的选择是运行不带标记输出的命令。