使用perforce的API,我将查看所有更改列表的历史记录,并且需要输出一个日志,其中包含在perforce中执行的所有操作。
对于分支和合并,我想记录操作的源和目标,但我似乎找不到它。不在changelist类中,也不在FileMetaData类中。
Perforce会将受更改影响的每个文件的数据保存在历史记录中,但我希望获得所执行的一般操作。例如,从//Main/Sample分支到//Main/Sample-分支或从//Main/X合并到//Main/Releases/A。
我能在哪里找到这些数据?
发布于 2015-08-26 04:57:27
您要查找的是Repository.GetSubmittedIntegrations返回的变更列表中文件修订的FileIntegrationRecord,也可能是Repository.GetFileHistory返回的RevisionIntegrationSummary。
发布于 2015-08-25 18:34:56
我不确定您使用的是哪种应用程序接口,但您将希望使用与'p4 filelog‘命令等效的命令。
输出示例:
//depot/release/prototype1/docs/Test Plan Template_Baseline.doc
... #1 change 471 branch on 2011/11/15 by jenbottom@resource_portle_dev (binary) 'Integrating to the prototype1 b'
... ... branch from //depot/dev/docs/Test Plan Template_Baseline.doc#1
//depot/release/prototype1/docs/associations
... #1 change 471 branch on 2011/11/15 by jenbottom@resource_portle_dev (text) 'Integrating to the prototype1 b'
... ... branch from //depot/dev/docs/associations#1查看更改列表471,我们可以看到文件上的操作是什么,但不是它们的分支位置:
Change 471 by jenbottom@resource_portle_dev on 2011/11/15 22:04:33
Integrating to the prototype1 branch in rel dir.
Affected files ...
... //depot/release/prototype1/docs/Test Plan Template_Baseline.doc#1 branch
... //depot/release/prototype1/docs/associations#1 branch
... //depot/release/prototype1/docs/changelog#1 branch希望这能帮到你,珍。
https://stackoverflow.com/questions/32176854
复制相似问题