public SVNStatusType getCombinedRemoteNodeAndContentsStatus() { int workingCopyFormat = getWorkingCopyFormat(); SVNStatusType remoteNodeStatus = getRemoteNodeStatus(); SVNStatusType remoteContentsStatus = getRemoteContentsStatus(); return combineRemoteNodeAndContentsStatus(workingCopyFormat, remoteNodeStatus, remoteContentsStatus); }
public SVNStatusType getCombinedNodeAndContentsStatus() { int workingCopyFormat = getWorkingCopyFormat(); SVNStatusType nodeStatus = getNodeStatus(); SVNStatusType contentsStatus = getContentsStatus(); boolean versioned = isVersioned(); boolean conflicted = isConflicted(); return combineNodeAndContentsStatus(workingCopyFormat, nodeStatus, contentsStatus, versioned, conflicted); }
wcRevision = "-"; } else if (!status.getRevision().isValid()) { if(status.getWorkingCopyFormat() >= ISVNWCDb.WC_FORMAT_17) { if(status.getNodeStatus()==SVNStatusType.STATUS_DELETED) { wcRevision = status.getCommittedRevision().toString();
wcRevision = "-"; } else if (!status.getRevision().isValid()) { if(status.getWorkingCopyFormat() >= ISVNWCDb.WC_FORMAT_17) { if(status.getNodeStatus()==SVNStatusType.STATUS_DELETED) { wcRevision = status.getCommittedRevision().toString();
/** * Makes sure that Subversion doesn't check out workspace in 1.6 */ @Email("http://www.nabble.com/SVN-1.6-td24081571.html") @Test public void workspaceVersion() throws Exception { FreeStyleProject p = r.createFreeStyleProject(); p.setScm(loadSvnRepo()); FreeStyleBuild b = p.scheduleBuild2(0).get(); SvnClientManager wc = SubversionSCM.createClientManager((AbstractProject)null); SVNStatus st = wc.getStatusClient().doStatus(new File(b.getWorkspace().getRemote()+"/a"), false); int wcf = st.getWorkingCopyFormat(); System.out.println(wcf); assertEquals(SVNAdminAreaFactory.WC_FORMAT_14,wcf); }
private int checkoutWithFormat(int format) throws Exception { super.configureSvnWorkspaceFormat(format); FreeStyleProject project = r.jenkins.createProject(FreeStyleProject.class, "svntest" + format); SubversionSCM subversionSCM = new SubversionSCM("https://svn.jenkins-ci.org/trunk/hudson/test-projects/trivial-ant"); project.setScm(subversionSCM); r.assertBuildStatusSuccess(project.scheduleBuild2(0)); // Create a status client and get the working copy format. SVNClientManager testWCVerseion = SVNClientManager.newInstance(null, "testWCVerseion", null); File path = new File(project.getWorkspace().getRemote()); return testWCVerseion.getStatusClient().doStatus(path, true).getWorkingCopyFormat(); } }
result.setWcLocked(status.isLocked()); result.setWorkingCopyFormat(status.getWorkingCopyFormat());