C# 为什么Diff2命令不起作用?

C# 为什么Diff2命令不起作用?,c#,.net,perforce,C#,.net,Perforce,如果我们将booltaggedOutput设置为true,则Diff2命令不会在taggedoutpl中给出假定的输出,但是如果我们将其设置为false,则在文本TextOutput上返回结果时不会出现问题,因此如何解决此问题 守则: P4Command command = new P4Command(ps, "diff2", false, new String[] { "-ds", depotpathleft, depotpathright }); Perforce.P4.Options op

如果我们将bool
taggedOutput
设置为true,则Diff2命令不会在
taggedoutpl
中给出假定的输出,但是如果我们将其设置为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”命令的已知行为。您可以向Perforce技术支持部门提出此问题,以便他们在将来更改此行为时通知您


目前,我认为您唯一的选择是使用未标记的输出运行命令。

谢谢,我想问您结果是什么?此结果的含义是什么添加3块28行删除0块0行更改2块4/12行