首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在perforce中从changelist中获取分支/合并源和目标?

如何在perforce中从changelist中获取分支/合并源和目标?
EN

Stack Overflow用户
提问于 2015-08-24 15:42:35
回答 2查看 451关注 0票数 0

使用perforce的API,我将查看所有更改列表的历史记录,并且需要输出一个日志,其中包含在perforce中执行的所有操作。

对于分支和合并,我想记录操作的源和目标,但我似乎找不到它。不在changelist类中,也不在FileMetaData类中。

Perforce会将受更改影响的每个文件的数据保存在历史记录中,但我希望获得所执行的一般操作。例如,从//Main/Sample分支到//Main/Sample-分支或从//Main/X合并到//Main/Releases/A。

我能在哪里找到这些数据?

EN

回答 2

Stack Overflow用户

发布于 2015-08-26 04:57:27

您要查找的是Repository.GetSubmittedIntegrations返回的变更列表中文件修订的FileIntegrationRecord,也可能是Repository.GetFileHistory返回的RevisionIntegrationSummary

票数 1
EN

Stack Overflow用户

发布于 2015-08-25 18:34:56

我不确定您使用的是哪种应用程序接口,但您将希望使用与'p4 filelog‘命令等效的命令。

输出示例:

代码语言:javascript
复制
//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,我们可以看到文件上的操作是什么,但不是它们的分支位置:

代码语言:javascript
复制
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

希望这能帮到你,珍。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/32176854

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档