我正在尝试将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.'发布于 2018-01-11 12:11:57
问题出在'run_submit‘命令上。该命令提交一个changeList,但协调的(并编号的)更改列表“只是一个数字”:
p4con.run('submit', '-c', clNum)https://stackoverflow.com/questions/48199637
复制相似问题