for ( Iterator it2 = entry.getAction().iterator(); it.hasNext(); ) {
ScmLogEntryItem item = (ScmLogEntryItem) it2.next();
ScmAction action;
switch ( item.getActionType() ) {
case 'A' : {
Add add = (Add) item;
if ( add.getPathType() == 'D' ) {
addDirectory( "",
add.getPath() );
} else {
int lastSlash = add.getPath().lastIndexOf( '/' );
String path = add.getPath().substring( 0,
lastSlash - 1 );
String file = add.getPath().substring( lastSlash + 1,
add.getPath().length() - 1 );
ByteArrayOutputStream bos = new ByteArrayOutputStream();
factory.getContent( path,
file,
-1,