Groovy打印变更列表描述时遇到问题

Groovy打印变更列表描述时遇到问题,groovy,perforce,p4api.net,p4java,Groovy,Perforce,P4api.net,P4java,我想打印特定流的每个变更列表的变更列表描述,但作为输出得到的描述仅限于某些字符集 changelistList.each { IChangelistSummary cl -> println cl.getDescription() } 这是一个有限的CL描述,而不是我在p4V中看到的完整描述 printed by script is - "settings IL customization" But the actual description is "settin

我想打印特定流的每个变更列表的变更列表描述,但作为输出得到的描述仅限于某些字符集

changelistList.each { IChangelistSummary cl ->
  println cl.getDescription() 
    }
这是一个有限的CL描述,而不是我在p4V中看到的完整描述

  printed by script is - "settings IL customization"
  But the actual description is "settings IL customization Fix_For_TDP XXXXX_Additional Services section expanded on both Provide and Change"

有人能帮忙吗?这里怎么了?我没有得到任何编译错误,脚本执行得很好,只是我没有得到完整的描述,我甚至尝试使用println cl.getDescription().toString(),但它没有帮助

您可能需要使用
getChangelist()
获取完整描述的变更列表的方法:

上面的变更列表是服务器的输出。getChangelist()@DevOops请仔细查看Sam的答案,并与您的答案进行比较。您不需要
IChangelistSummary
,而是需要
IChangelist
。在命令行术语中,这是
p4 changes
p4 change-o
之间的区别。您从
p4 changes
获取的
IChangelistSummary
,只有截断的描述,您需要从
p4 change-o
获取的
IChangelist
,以查看完整的描述。感谢Sam和Bryan的澄清