public SVNDiffStatus toStatus() throws SVNException { return new SVNDiffStatus(myFile, myRootURL.appendPath(myPath, false), myPath, myType, myPropChanged, myKind); }
public SVNDiffStatus toStatus() throws SVNException { return new SVNDiffStatus(myFile, myRootURL.appendPath(myPath, false), myPath, myType, myPropChanged, myKind); }
public SVNDiffStatus toStatus() throws SVNException { return new SVNDiffStatus(new File(myAnchor, myPath), myRootURL.appendPath(myPath, false), myPath, myType, myPropChanged, myKind); }
public SVNDiffStatus toStatus() throws SVNException { return new SVNDiffStatus(new File(myAnchor, myPath), myRootURL.appendPath(myPath, false), myPath, myType, myPropChanged, myKind); }
public void deleteEntry(String path, long revision) throws SVNException { SVNNodeKind kind = myRepository.checkPath(path, myRevision); SVNDiffStatus status = new SVNDiffStatus(new File(myAnchor, path), myRootURL.appendPath(path, false), path, SVNStatusType.STATUS_DELETED, false, kind); myHandler.handleDiffStatus(status); }
public void deleteEntry(String path, long revision) throws SVNException { SVNNodeKind kind = myRepository.checkPath(path, myRevision); SVNDiffStatus status = new SVNDiffStatus(new File(myAnchor, path), myRootURL.appendPath(path, false), path, SVNStatusType.STATUS_DELETED, false, kind); myHandler.handleDiffStatus(status); }
public void deleteEntry(String path, long revision) throws SVNException { SVNNodeKind kind = myRepository.checkPath(path, myRevision); String statusPath = getStatusPath(path); SVNDiffStatus status = new SVNDiffStatus(myAnchor != null ? new File(myAnchor, path) : null, myRootURL.appendPath(path, false), statusPath, SVNStatusType.STATUS_DELETED, false, kind); myHandler.handleDiffStatus(status); }
public void deleteEntry(String path, long revision) throws SVNException { SVNNodeKind kind = myRepository.checkPath(path, myRevision); String statusPath = getStatusPath(path); SVNDiffStatus status = new SVNDiffStatus(myAnchor != null ? new File(myAnchor, path) : null, myRootURL.appendPath(path, false), statusPath, SVNStatusType.STATUS_DELETED, false, kind); myHandler.handleDiffStatus(status); if (kind == SVNNodeKind.DIR) { diffDeletedDir(path); } }
private void diffDeletedDir(String path) throws SVNException { Collection<SVNDirEntry> entries = myRepository.getDir(path, myRevision, null, SVNDirEntry.DIRENT_KIND, (Collection<SVNDirEntry>) null); for (SVNDirEntry entry : entries) { String name = entry.getName(); if ("".equals(name)) { continue; } String entryPath = SVNPathUtil.append(path, name); String statusPath = getStatusPath(entryPath); SVNDiffStatus status = new SVNDiffStatus( myAnchor != null ? new File(myAnchor, entryPath) : null, myRootURL.appendPath(entryPath, false), statusPath, SVNStatusType.STATUS_DELETED, false, entry.getKind()); myHandler.handleDiffStatus(status); if (entry.getKind() == SVNNodeKind.DIR) { diffDeletedDir(entryPath); } } }
private void sendSummary(File path, SVNStatusType summarizeKind, boolean propChanged, SVNNodeKind nodeKind) throws SVNException { assert summarizeKind != SVNStatusType.STATUS_NORMAL || propChanged; if (this.reversed) { if (summarizeKind == SVNStatusType.STATUS_ADDED) { summarizeKind = SVNStatusType.STATUS_DELETED; } else if (summarizeKind == SVNStatusType.STATUS_DELETED) { summarizeKind = SVNStatusType.STATUS_ADDED; } } File relPath = SVNFileUtil.isAbsolute(path) ? SVNFileUtil.skipAncestor(baseDirectory, path): path; File relTarget = this.target == null ? null : (SVNFileUtil.isAbsolute(this.target) ? SVNFileUtil.skipAncestor(new File("").getAbsoluteFile(), this.target) : this.target); File realRelPath = relTarget == null ? relPath : SVNFileUtil.skipAncestor(relTarget, relPath); SVNDiffStatus diffStatus = new SVNDiffStatus(path, baseUrl == null ? null : baseUrl.appendPath(SVNFileUtil.getFilePath(relPath), false), SVNFileUtil.getFilePath(realRelPath), summarizeKind, (summarizeKind == SVNStatusType.STATUS_MODIFIED || summarizeKind == SVNStatusType.STATUS_NORMAL) ? propChanged : false, nodeKind); handler.handleDiffStatus(diffStatus); }
public static SVNDiffStatus diffStatus(SvnDiffStatus diffStatus) { return new SVNDiffStatus(diffStatus.getFile(), diffStatus.getUrl(), diffStatus.getPath(), diffStatus.getModificationType(), diffStatus.isPropertiesModified(), diffStatus.getKind()); }