in src/net/sourceforge/transparent/TransparentVcs.java [707:735]
public void renameAndCheckInFile( final File oldFile, final String newName,
String comment, final List<VcsException> errors )
{
final File newFile = new File( oldFile.getParent(), newName );
try
{
@NonNls final String modComment = StringUtil.isEmpty(comment) ? "Renamed " + oldFile.getName() + " to " + newName : comment;
Runnable action = () -> {
File ioParent = oldFile.getParentFile();
if( ioParent.exists() )
{
renameFile( newFile, oldFile );
if( !oldFile.isDirectory() )
checkinFile( oldFile, modComment, errors );
getClearCase().checkOut( ioParent, config.checkoutReserved, modComment, true);
//getClearCase().checkOut( oldFile, config.checkoutReserved, modComment, false);
getClearCase().move( oldFile, newFile, modComment );
getClearCase().checkIn( ioParent, modComment );
}
};
executeAndHandleOtherFileInTheWay(oldFile, action );
}
catch( Throwable e )
{
handleException( e, newFile, errors );
}
}