1

我正在尝试将 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.'
4

1 回答 1

1

问题是“run_submit”命令。该命令提交一个 changeList,但协调(和编号)的 changelist 是“只是一个数字”:

p4con.run('submit', '-c', clNum)
于 2018-01-11T04:11:57.303 回答