2

我正在使用 PerforceP4API.NET以编程方式提交大型分支操作,并希望能够为我的用户提供一些反馈。

使用命令行p4客户端时,可以-I选择获取进度报告。有什么方法可以通过 API 获取这些报告?

我正在使用r13.1,但如有必要可以升级。

4

1 回答 1

3

进度报告通过 ClientProgress 类在 C++ API 中公开:

http://www.perforce.com/perforce/doc.current/manuals/p4api/chapter.methods.html#clientuser.createprogress

这是在 2012.2 版本中添加到 C++ API 中的:

http://www.perforce.com/perforce/doc.current/user/p4apinotes.txt

Major new functionality in 2012.2

    New ClientUserProgress class which shows Textual progress
    indications.  New methods in ClientUser (CreateProgress,
    and ProgressIndicator).  See api documentation for details.

但是.NET API 中还没有类似的接口。

于 2014-12-22T21:11:19.997 回答