doAdd(toCommit);
	public void commit(CTreeNode node, String commitMessage) throws SVNException{		SVNCommitClient svnCC = new SVNCommitClient(repository.getAuthenticationManager(),SVNWCUtil.createDefaultOptions(true) );		File toCommit = new File(node.getLocalPath());		if(toCommit.isDirectory()){			File[] fileInDirectory ;			if(!SvnHistory.isUnderVersion(toCommit)){				/*CTreeNode tmp = (CTreeNode)node.getRoot();				svnCC.doImport(toCommit,SVNURL.parseURIDecoded(SvnConnect.getInstance().getUrl()+toCommit.getPath().replaceAll(tmp.getLocalPath(),"")),commitMessage,true);*/				fileInDirectory = fileToAdd(node);							}else{			fileInDirectory = toCommit.listFiles(new FilenameFilter() {					public boolean accept(File dir, String name) {						File directory = new File(dir.getAbsolutePath()+"/"+name); 						if(directory.isDirectory()&&!directory.isHidden())							return true;						if(name.endsWith(".pre")||name.endsWith(".pog")||name.endsWith(".apes"))							return true;						return false;				}						});			}			svnCC.doCommit(fileInDirectory,false,commitMessage, false, true);					}else{						if(!SvnHistory.isUnderVersion(toCommit)){				/*CTreeNode tmp = (CTreeNode)node.getRoot();				svnCC.doImport(toCommit,SVNURL.parseURIDecoded(SvnConnect.getInstance().getUrl()+toCommit.getPath().replaceAll(tmp.getLocalPath(),"")),commitMessage,false);*/				svnCC.doCommit(fileToAdd(node),false,commitMessage, false, false);			}else{				sendFile(toCommit,commitMessage);			}		}			}