使用perforce更改命令

时间:2013-04-10 08:53:44

标签: c# perforce p4api.net

为了获得特定时期的变更清单,我们使用命令更改

p4 changes @2001/04/01,@now 

我正在使用p4api.net获取此更改列表,因此我必须使用:

 P4Command cm1 = new P4Command(ps, "changes", true, String.Format("{0}", deppath1));

但问题是如何指定这两个选项,我试过它并且它不起作用 请帮我, 了解更多帮助,了解我在寻找什么 How to find changelists submitted in the last week for a particular user using Perforce?

1 个答案:

答案 0 :(得分:0)

当我们使用p4api.net时,p4更改在这种情况下不起作用:

p4 changes file.c@2010/05/01,2010/06/01 

错过了file.c和@之间的空白,因此cm1.addArg在这种情况下无法正常工作,因为它会添加空格并且不会被执行