&& null != revisionsFld.getList() )
{
@SuppressWarnings( "unchecked" ) List<Item> revList = revisionsFld.getList();
for ( Iterator<Item> lit = revList.iterator(); lit.hasNext(); )
{
Item revisionItem = lit.next();
String revision = revisionItem.getId();
String author = revisionItem.getField( "author" ).getItem().getId();
// Attempt to get the full name, if available
try
{
author = revisionItem.getField( "author" ).getItem().getField( "fullname" ).getValueAsString();
}
catch ( NullPointerException npe )
{ /* ignore */ }
String cpid = ":none";
// Attempt to get the cpid for this revision
try
{
cpid = revisionItem.getField( "cpid" ).getItem().getId();
}
catch ( NullPointerException npe )
{ /* ignore */ }
// Get the Change Package summary for this revision
String comment = cpid + ": " + revisionItem.getField( "cpsummary" ).getValueAsString();
// Get the date associated with this revision
Date date = revisionItem.getField( "date" ).getDateTime();
// Lets create our ChangeFile based on the information we've gathered so far
ChangeFile changeFile = new ChangeFile( memberName, revision );
// Check to see if we already have a ChangeSet grouping for this revision