p4python reconcile和fetch_change

时间:2018-01-11 04:11:57

标签: perforce p4python

我正在尝试使用p4python的run_reconcile()和fetch_change()中的更改列表。代码是这样的:

p4con.client = 'clientName'
p4con.cwd    = '//' + location
changeList   = p4con.fetch_change()
# update some changeList info, but not _files
clNum        = p4con.save_change(changeList)[0].split()[1]
result       = p4con.run_reconcile('-c', clNum, '-e', '-a', '-d')
p4con.run_submit(changeList)

然而,我收到错误:

P4Exception: [P4#run] Errors during command execution( "p4 submit -i" )
[Error]: 'No files to submit.'

1 个答案:

答案 0 :(得分:1)

问题是'run_submit'命令。该命令提交了一个changeList,但是已对帐(并编号)的更改列表“只是一个数字”:

p4con.run('submit', '-c', clNum)