/** * Returns if the resource just has been added * @return if added */ public boolean isAdded() { return getTextStatus() == Status.Kind.added; }
/** * Returns if the resource has a remote counter-part * @return has version in repository */ public boolean hasRemote() { return (isManaged() && getTextStatus() != Status.Kind.added); }
/** * Returns the last date the item was changed or null * @return the last time the item was changed or null if not * available */ public Date getLastChangedDate() { return microsecondsToDate(lastChangedDate); }
String path = tested[i].getPath(); Assert.assertTrue("status path starts not with working copy path", path.startsWith(normalizeWCPath)); item); Assert.assertEquals("wrong text status in working copy: " + path, item.textStatus, tested[i].getTextStatus()); if (item.workingCopyRev != -1) Assert.assertEquals("wrong revision number in working copy: " + path, item.workingCopyRev, tested[i].getRevisionNumber()); Assert.assertEquals("lock status wrong: " + path, item.isLocked, tested[i].isLocked()); Assert.assertEquals("switch status wrong: " + path, item.isSwitched, tested[i].isSwitched()); Assert.assertEquals("wrong prop status in working copy: " + path, item.propStatus, tested[i].getPropStatus()); if (item.myContent != null) tested[i].getNodeKind(), item.nodeKind == -1 ? NodeKind.file : item.nodeKind); if (tested[i].getTextStatus() == Status.Kind.normal || item.checkContent) tested[i].getNodeKind(), item.nodeKind == -1 ? NodeKind.dir : item.nodeKind); + item.myPath + "' don't match:", item.reposLastCmtRevision,
int reposKind = getNodeKind(status.getRemoteKind()); Status st = new Status(path, url, nodeKind, revision, lastChangedRevision, lastChangedDate, lastCommitAuthor, textStatus, propStatus, repositoryTextStatus, repositoryPropStatus, locked, copied, conflictOld, conflictNew, conflictWorking, urlCopiedFrom, revisionCopiedFrom, switched, lockToken, lockOwner, lockComment, lockCreationDate, reposLock,
false, false, false); if (!(secondWCStatus.length == 1 && secondWCStatus[0].getPath().endsWith("A/B/lambda") && secondWCStatus[0].getTextStatus() == StatusKind.modified && secondWCStatus[0].getPropStatus() == StatusKind.none))
long rhoCommitDate = status.getLastChangedDate().getTime(); long rhoCommitRev = rev; String rhoAuthor = status.getLastCommitAuthor(); status = client.singleStatus(thisTest.getWCPath() + "/A/D/G/tau", false); long tauCommitDate = status.getLastChangedDate().getTime(); long tauCommitRev = rev; String tauAuthor = status.getLastCommitAuthor(); thisTest.getWc().addItem("A/B/I", null); status = client.singleStatus(thisTest.getWCPath() + "/A/B/I", false); long ICommitDate = status.getLastChangedDate().getTime(); long ICommitRev = rev; String IAuthor = status.getLastCommitAuthor(); status = client.singleStatus(thisTest.getWCPath() + "/A/D/H/nu", false); long nuCommitDate = status.getLastChangedDate().getTime(); long nuCommitRev = rev; String nuAuthor = status.getLastCommitAuthor(); thisTest.getWc().setItemWorkingCopyRevision("A/B/F", rev); status = client.singleStatus(thisTest.getWCPath() + "/A/B/F", false); long FCommitDate = status.getLastChangedDate().getTime(); long FCommitRev = rev; String FAuthor = status.getLastCommitAuthor(); status = client.singleStatus(thisTest.getWCPath() + "/A/D/H/chi",
/** * Returns if the resource has a remote counter-part * @return has version in repository */ public boolean hasRemote() { return (isManaged() && getTextStatus() != Status.Kind.added); }
assertEquals(status[0].getChangelist(), changelistName);
String path = tested[i].getPath(); Assert.assertTrue("status path starts not with working copy path", path.startsWith(normalizeWCPath)); item); Assert.assertEquals("wrong text status in working copy: " + path, item.textStatus, tested[i].getTextStatus()); if (item.workingCopyRev != -1) Assert.assertEquals("wrong revision number in working copy: " + path, item.workingCopyRev, tested[i].getRevisionNumber()); Assert.assertEquals("lock status wrong: " + path, item.isLocked, tested[i].isLocked()); Assert.assertEquals("switch status wrong: " + path, item.isSwitched, tested[i].isSwitched()); Assert.assertEquals("wrong prop status in working copy: " + path, item.propStatus, tested[i].getPropStatus()); if (item.myContent != null) tested[i].getNodeKind(), item.nodeKind == -1 ? NodeKind.file : item.nodeKind); if (tested[i].getTextStatus() == Status.Kind.normal || item.checkContent) tested[i].getNodeKind(), item.nodeKind == -1 ? NodeKind.dir : item.nodeKind); + item.myPath + "' don't match:", item.reposLastCmtRevision,
Status st = new Status(path, url, nodeKind, revision, lastChangedRevision, lastChangedDate, lastCommitAuthor, textStatus, propStatus, repositoryTextStatus, repositoryPropStatus, locked, copied, tc != null, createConflictDescription(tc), conflictOld, conflictNew, conflictWorking, urlCopiedFrom, revisionCopiedFrom, switched, false, lockToken, lockOwner, lockComment, lockCreationDate, reposLock,
long rhoCommitDate = status.getLastChangedDate().getTime(); long rhoCommitRev = rev; String rhoAuthor = status.getLastCommitAuthor(); status = client.singleStatus(thisTest.getWCPath() + "/A/D/G/tau", false); long tauCommitDate = status.getLastChangedDate().getTime(); long tauCommitRev = rev; String tauAuthor = status.getLastCommitAuthor(); thisTest.getWc().addItem("A/B/I", null); status = client.singleStatus(thisTest.getWCPath() + "/A/B/I", false); long ICommitDate = status.getLastChangedDate().getTime(); long ICommitRev = rev; String IAuthor = status.getLastCommitAuthor(); status = client.singleStatus(thisTest.getWCPath() + "/A/D/H/nu", false); long nuCommitDate = status.getLastChangedDate().getTime(); long nuCommitRev = rev; String nuAuthor = status.getLastCommitAuthor(); thisTest.getWc().setItemWorkingCopyRevision("A/B/F", rev); status = client.singleStatus(thisTest.getWCPath() + "/A/B/F", false); long FCommitDate = status.getLastChangedDate().getTime(); long FCommitRev = rev; String FAuthor = status.getLastCommitAuthor(); status = client.singleStatus(thisTest.getWCPath() + "/A/D/H/chi",
assertEquals(status[0].getChangelist(), changelistName);
/** * Returns if the resource is ignored by svn (only returned if noIgnore * is set on SVNClient.list) * @return if ignore */ public boolean isIgnored() { return getTextStatus() == Status.Kind.ignored; }
/** * Returns if the resource has a remote counter-part * @return has version in repository */ public boolean hasRemote() { return (isManaged() && getTextStatus() != Status.Kind.added); }
Status st = new Status(path, url, nodeKind, revision, lastChangedRevision, lastChangedDate, lastCommitAuthor, textStatus, propStatus, repositoryTextStatus, repositoryPropStatus, locked, copied, tc != null, createConflictDescription(tc), conflictOld, conflictNew, conflictWorking, urlCopiedFrom, revisionCopiedFrom, switched, false, lockToken, lockOwner, lockComment, lockCreationDate, reposLock,
/** * @return The last committed date, or <code>null</code> if up to * date. * @since 1.3 */ public Date getReposLastCmtDate() { return microsecondsToDate(reposLastCmtDate); }
/** * Returns if the resource has been merged * @return if merged */ public boolean isMerged() { return getTextStatus() == Status.Kind.merged; }
/** * Returns if the resource has a remote counter-part * @return has version in repository */ public boolean hasRemote() { return (isManaged() && getTextStatus() != Status.Kind.added); }
Status st = new Status(path, url, nodeKind, revision, lastChangedRevision, lastChangedDate, lastCommitAuthor, textStatus, propStatus, repositoryTextStatus, repositoryPropStatus, locked, copied, tc != null, createConflictDescription(tc), conflictOld, conflictNew, conflictWorking, urlCopiedFrom, revisionCopiedFrom, switched, false, lockToken, lockOwner, lockComment, lockCreationDate, reposLock,