protected SVNRepository createRepository(SVNURL url, File path, SVNRevision pegRevision, SVNRevision revision) throws SVNException { return createRepository(url, path, pegRevision, revision, null); }
protected SVNRepository createRepository(SVNURL url, File path, SVNWCAccess access, boolean mayReuse) throws SVNException { String uuid = null; if (access != null) { SVNEntry entry = access.getEntry(path, false); if (entry != null) { uuid = entry.getUUID(); } } return createRepository(url, uuid, mayReuse); }
protected SVNRepository createRepository(SVNURL url, File path, SVNWCAccess access, boolean mayReuse) throws SVNException { String uuid = null; if (access != null) { SVNEntry entry = access.getEntry(path, false); if (entry != null) { uuid = entry.getUUID(); } } return createRepository(url, uuid, mayReuse); }
try { if (repository == null) { repository = createRepository(url, null, null, false); closeRepository = true;
try { if (repository == null) { repository = createRepository(url, null, null, false); closeRepository = true;
try { if (repos == null) { repos = createRepository(url, null, null, false); closeRepository = true;
try { if (repos == null) { repos = createRepository(url, null, null, false); closeRepository = true;
SVNRepository repos = null; try { repos = createRepository(url, path, null, pegRevision, pegRevision, null); reposRoot = repos.getRepositoryRoot(true); } finally {
SVNRepository repos = null; try { repos = createRepository(url, path, null, pegRevision, pegRevision, null); reposRoot = repos.getRepositoryRoot(true); } finally {
protected SVNRepository createRepository(SVNURL url, File path, SVNAdminArea area, SVNRevision pegRevision, SVNRevision revision, long[] pegRev) throws SVNException { if (url == null) { SVNURL pathURL = getURL(path); if (pathURL == null) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.ENTRY_MISSING_URL, "''{0}'' has no URL", path); SVNErrorManager.error(err, SVNLogType.WC); } } SVNRevision startRevision = revision; SVNRevision[] resolvedRevisions = resolveRevisions(pegRevision, startRevision, url != null, true); pegRevision = resolvedRevisions[0]; startRevision = resolvedRevisions[1]; SVNRepositoryLocation[] locations = getLocations(url, path, null, pegRevision, startRevision, SVNRevision.UNDEFINED); url = locations[0].getURL(); long actualRevision = locations[0].getRevisionNumber(); SVNRepository repository = createRepository(url, area != null ? area.getRoot() : null, area != null ? area.getWCAccess() : null, true); actualRevision = getRevisionNumber(SVNRevision.create(actualRevision), repository, path); if (actualRevision < 0) { actualRevision = repository.getLatestRevision(); } if (pegRev != null && pegRev.length > 0) { pegRev[0] = actualRevision; } return repository; }
protected SVNRepository createRepository(SVNURL url, File path, SVNAdminArea area, SVNRevision pegRevision, SVNRevision revision, long[] pegRev) throws SVNException { if (url == null) { SVNURL pathURL = getURL(path); if (pathURL == null) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.ENTRY_MISSING_URL, "''{0}'' has no URL", path); SVNErrorManager.error(err, SVNLogType.WC); } } SVNRevision startRevision = revision; SVNRevision[] resolvedRevisions = resolveRevisions(pegRevision, startRevision, url != null, true); pegRevision = resolvedRevisions[0]; startRevision = resolvedRevisions[1]; SVNRepositoryLocation[] locations = getLocations(url, path, null, pegRevision, startRevision, SVNRevision.UNDEFINED); url = locations[0].getURL(); long actualRevision = locations[0].getRevisionNumber(); SVNRepository repository = createRepository(url, area != null ? area.getRoot() : null, area != null ? area.getWCAccess() : null, true); actualRevision = getRevisionNumber(SVNRevision.create(actualRevision), repository, path); if (actualRevision < 0) { actualRevision = repository.getLatestRevision(); } if (pegRev != null && pegRev.length > 0) { pegRev[0] = actualRevision; } return repository; }
repository = createRepository(url, true);
repository = createRepository(url, null, null, true); } else {
repository = createRepository(url, null, null, true); } else {
url = locations[0].getURL(); long actualRevision = locations[0].getRevisionNumber(); SVNRepository repository = createRepository(url, true); actualRevision = getRevisionNumber(SVNRevision.create(actualRevision), repository, path); if (actualRevision < 0) {