in src/net/sourceforge/transparent/TransparentVcs.java [614:646]
public void addFile( VirtualFile file, @NonNls String comment, List<VcsException> errors )
{
File ioFile = new File( file.getPath() );
File ioParent = ioFile.getParentFile();
if( ioParent != null )
{
String parentComment = addToComment( comment, "Adding " + file.getName() );
if( StringUtil.isEmpty( comment ) )
comment = "Initial Checkin";
VcsException error = tryToCheckout( ioParent, parentComment, false);
if( error != null )
{
error.setVirtualFile( file );
errors.add( error );
return;
}
addFileToCheckedoutFolder( ioFile, comment, errors );
// All other exceptions are currently non-workaroundable and
// cause the complete operation failure.
try
{
getClearCase().checkIn( ioParent, parentComment );
}
catch( ClearCaseException ccExc )
{
handleException( ccExc, file, errors );
}
}
}