private boolean isSameRepository(ModuleLocation location, SVNInfo svnkitInfo) throws SVNException { return location.getSVNURL().toString().startsWith(svnkitInfo.getRepositoryRootURL().toString()); }
private String relativeUrl(SVNInfo info) { final String relativePath = SVNPathUtil.getRelativePath(info.getRepositoryRootURL().toString(), info.getURL().toString()); return "^/" + relativePath; }
private String relativeUrl(SVNInfo info) { final String relativePath = SVNPathUtil.getRelativePath(info.getRepositoryRootURL().toString(), info.getURL().toString()); return "^/" + relativePath; }
public void process( @NotNull CmdLine cmdLine ) throws Exception { SVNClientManager manager = SVNClientManager.newInstance(); File current = new File( "." ); SVNWCClient client = manager.getWCClient(); SVNInfo info = client.doInfo( current.getCanonicalFile(), SVNRevision.WORKING ); if ( info == null ) { throw new IllegalStateException( "No info found for " + current.getCanonicalPath() ); } SVNURL actualUrl = info.getRepositoryRootURL(); String newUrl; try { newUrl = subversionSupport.getCorrespondingNewUrl( actualUrl ); } catch ( OldUrlNotFoundException ignore ) { newUrl = cmdLine.read( SubversionMessageHandler.get( "enter.new.url.for", actualUrl.toString() ), "" ); subversionSupport.addRepositoryUrl( newUrl ); subversionSupport.addOldRepositoryUrl( actualUrl.toString(), newUrl ); } cmdLine.out( SubversionMessageHandler.get( "module.switch.relocating", actualUrl, newUrl ) ); cmdLine.pause( 5 ); String command = subversionSupport.getSubversionBin() + " switch --relocate " + actualUrl + " " + newUrl; cmdLine.out( "---> " + command ); ProcessWrapper.runCommand( cmdLine, command ); cmdLine.success( SubversionMessageHandler.get( "module.processed.successfully" ) ); } }
info.getURL() != null ? info.getURL().toString() : null, info.getRepositoryUUID(), info.getRepositoryRootURL() != null ? info.getRepositoryRootURL().toString() : null, schedule, getNodeKind(info.getKind()),
SVNRevision.WORKING); final String repoPath = info.getURL().getPath(); final String repoRootPath = info.getRepositoryRootURL().getPath();
info.getURL() != null ? info.getURL().toString() : null, info.getRepositoryUUID(), info.getRepositoryRootURL() != null ? info.getRepositoryRootURL().toString() : null, schedule, getNodeKind(info.getKind()),
info.getURL() != null ? info.getURL().toString() : null, info.getRepositoryUUID(), info.getRepositoryRootURL() != null ? info.getRepositoryRootURL().toString() : null, schedule, getNodeKind(info.getKind()),
info.getURL() != null ? info.getURL().toString() : null, info.getRepositoryUUID(), info.getRepositoryRootURL() != null ? info.getRepositoryRootURL().toString() : null, schedule, getNodeKind(info.getKind()),
public PathContext invoke(File p, VirtualChannel channel) throws IOException { final SvnClientManager manager = SubversionSCM.createClientManager(authProvider); try { final SVNWCClient svnwc = manager.getWCClient(); SVNInfo info; try { info = svnwc.doInfo(p, SVNRevision.WORKING); String url = info.getURL().toDecodedString(); String repoRoot = info.getRepositoryRootURL().toDecodedString(); return new PathContext(url, repoRoot, null); } catch (SVNException e) { e.printStackTrace(); return null; } } finally { manager.dispose(); } }
info.getURL() != null ? info.getURL().toString() : null, info.getRepositoryUUID(), info.getRepositoryRootURL() != null ? info.getRepositoryRootURL().toString() : null, schedule, getNodeKind(info.getKind()),
info.getRevision() != null ? info.getRevision().getNumber() : -1, getNodeKind(info.getKind()), info.getRepositoryRootURL() != null ? info.getRepositoryRootURL().toString() : null, info.getRepositoryUUID(), info.getCommittedRevision() != null ? info.getCommittedRevision().getNumber() : - 1,
info.getRevision() != null ? info.getRevision().getNumber() : -1, getNodeKind(info.getKind()), info.getRepositoryRootURL() != null ? info.getRepositoryRootURL().toString() : null, info.getRepositoryUUID(), info.getCommittedRevision() != null ? info.getCommittedRevision().getNumber() : - 1,
info.getRepositoryRootURL(), svnurl )) {
info.getRevision() != null ? info.getRevision().getNumber() : -1, getNodeKind(info.getKind()), info.getRepositoryRootURL() != null ? info.getRepositoryRootURL().toString() : null, info.getRepositoryUUID(), info.getCommittedRevision() != null ? info.getCommittedRevision().getNumber() : - 1,
info.getRevision() != null ? info.getRevision().getNumber() : -1, getNodeKind(info.getKind()), info.getRepositoryRootURL() != null ? info.getRepositoryRootURL().toString() : null, info.getRepositoryUUID(), info.getCommittedRevision() != null ? info.getCommittedRevision().getNumber() : - 1,
currentItem.setRepositoryUUID( svnInfo.getRepositoryUUID() ); currentItem.setRepositoryRoot( svnInfo.getRepositoryRootURL() != null ? svnInfo.getRepositoryRootURL().toString() : null ); currentItem.setNodeKind( svnInfo.getKind() != null ? svnInfo.getKind().toString() : null ); return currentItem;
info.getRevision() != null ? info.getRevision().getNumber() : -1, getNodeKind(info.getKind()), info.getRepositoryRootURL() != null ? info.getRepositoryRootURL().toString() : null, info.getRepositoryUUID(), info.getCommittedRevision() != null ? info.getCommittedRevision().getNumber() : - 1,
break; case REPS_ROOT_URL: printInfoItemString(info.getRepositoryRootURL().toString(), targetPath); break; case REPOS_UUID:
break; case REPS_ROOT_URL: printInfoItemString(info.getRepositoryRootURL().toString(), targetPath); break; case REPOS_UUID: