public static DiffSummary createDiffSummary(SVNDiffStatus status) { int diffStatus = -1; if (status.getModificationType() == SVNStatusType.STATUS_NORMAL || status.getModificationType() == SVNStatusType.STATUS_NONE) { diffStatus = 0; } else if (status.getModificationType() == SVNStatusType.STATUS_ADDED) { diffStatus = 1; } else if (status.getModificationType() == SVNStatusType.STATUS_MODIFIED) { diffStatus = 2; } else if (status.getModificationType() == SVNStatusType.STATUS_DELETED) { diffStatus = 3; } return new DiffSummary(status.getPath(), diffStatus, status.isPropertiesModified(), getNodeKind(status.getKind())); }
public SVNDiffStatus toStatus() throws SVNException { return new SVNDiffStatus(myFile, myRootURL.appendPath(myPath, false), myPath, myType, myPropChanged, myKind); }
public void handleDiffStatus(SVNDiffStatus diffStatus) throws SVNException { if (receiver != null) { if (diffStatus != null && (diffStatus.isPropertiesModified() || (diffStatus.getModificationType() != SVNStatusType.STATUS_NORMAL && diffStatus.getModificationType() != SVNStatusType.STATUS_NONE))) { receiver.onSummary(JavaHLObjectFactory.createDiffSummary(diffStatus)); } } } };
public static SvnDiffStatus diffStatus(SVNDiffStatus diffStatus) { SvnDiffStatus result = new SvnDiffStatus(); result.setFile(diffStatus.getFile()); result.setUrl(diffStatus.getURL()); result.setPath(diffStatus.getPath()); result.setModificationType(diffStatus.getModificationType()); result.setPropertiesModified(diffStatus.isPropertiesModified()); result.setKind(diffStatus.getKind()); result.setUserData(diffStatus); return result; }
false, diffStatus -> { if (diffStatus.getKind() == SVNNodeKind.FILE) { paths.add( new SVNRevisionPath( "/" + diffStatus.getPath(), toFileChangeType(diffStatus.getModificationType())
public void handleDiffStatus(SVNDiffStatus diffStatus) throws SVNException { if (receiver != null) { final SvnTarget target = diffStatus.getURL() != null ? SvnTarget.fromURL(diffStatus.getURL()) : SvnTarget.fromFile(diffStatus.getFile()); receiver.receive(target, SvnCodec.diffStatus(diffStatus)); } } };
public void handleDiffStatus(SVNDiffStatus diffStatus) throws SVNException { if (diffStatus.getModificationType() == SVNStatusType.STATUS_NONE && !diffStatus.isPropertiesModified()) { return; String path = diffStatus.getPath(); if (diffStatus.getURL() != null) { path = diffStatus.getURL().toString(); } else { path = SVNPathUtil.append(anchor.getTarget(), diffStatus.getPath()); path = getSVNEnvironment().getRelativePath(diffStatus.getFile()); path = SVNCommandUtil.getLocalPath(path); StringBuffer buffer = new StringBuffer(); Map attrs = new SVNHashMap(); attrs.put("kind", diffStatus.getKind().toString()); String modificationKind = "none"; if (diffStatus.getModificationType() == SVNStatusType.STATUS_MODIFIED) { modificationKind = "modified"; } else if (diffStatus.getModificationType() == SVNStatusType.STATUS_ADDED) { modificationKind = "added"; } else if (diffStatus.getModificationType() == SVNStatusType.STATUS_DELETED) { modificationKind = "deleted"; attrs.put("props", diffStatus.isPropertiesModified() ? "modified" : "none"); buffer = openXMLTag("path", SVNXMLUtil.XML_STYLE_PROTECT_CDATA, attrs, buffer); buffer.append(SVNEncodingUtil.xmlEncodeCDATA(path));
public void handleDiffStatus(SVNDiffStatus diffStatus) throws SVNException { if (receiver != null) { if (diffStatus != null && (diffStatus.isPropertiesModified() || (diffStatus.getModificationType() != SVNStatusType.STATUS_NORMAL && diffStatus.getModificationType() != SVNStatusType.STATUS_NONE))) { receiver.onSummary(JavaHLObjectFactory.createDiffSummary(diffStatus)); } } } };
public void handleDiffStatus(SVNDiffStatus diffStatus) throws SVNException { if (diffStatus.getModificationType() == SVNStatusType.STATUS_NONE && !diffStatus.isPropertiesModified()) { return; String path = diffStatus.getPath(); if (diffStatus.getURL() != null) { path = diffStatus.getURL().toString(); } else { path = SVNPathUtil.append(anchor.getTarget(), diffStatus.getPath()); path = getSVNEnvironment().getRelativePath(diffStatus.getFile()); path = SVNCommandUtil.getLocalPath(path); StringBuffer buffer = new StringBuffer(); Map attrs = new SVNHashMap(); attrs.put("kind", diffStatus.getKind().toString()); String modificationKind = "none"; if (diffStatus.getModificationType() == SVNStatusType.STATUS_MODIFIED) { modificationKind = "modified"; } else if (diffStatus.getModificationType() == SVNStatusType.STATUS_ADDED) { modificationKind = "added"; } else if (diffStatus.getModificationType() == SVNStatusType.STATUS_DELETED) { modificationKind = "deleted"; attrs.put("props", diffStatus.isPropertiesModified() ? "modified" : "none"); buffer = openXMLTag("path", SVNXMLUtil.XML_STYLE_PROTECT_CDATA, attrs, buffer); buffer.append(SVNEncodingUtil.xmlEncodeCDATA(path));
public static DiffSummary createDiffSummary(SVNDiffStatus status) { int diffStatus = -1; if (status.getModificationType() == SVNStatusType.STATUS_NORMAL || status.getModificationType() == SVNStatusType.STATUS_NONE) { diffStatus = 0; } else if (status.getModificationType() == SVNStatusType.STATUS_ADDED) { diffStatus = 1; } else if (status.getModificationType() == SVNStatusType.STATUS_MODIFIED) { diffStatus = 2; } else if (status.getModificationType() == SVNStatusType.STATUS_DELETED) { diffStatus = 3; } return new DiffSummary(status.getPath(), diffStatus, status.isPropertiesModified(), getNodeKind(status.getKind())); }
public void handleDiffStatus(SVNDiffStatus diffStatus) throws SVNException { if (diffStatus != null && receiver != null) { if (diffStatus.isPropertiesModified() || (diffStatus.getModificationType() != SVNStatusType.STATUS_NORMAL && diffStatus.getModificationType() != SVNStatusType.STATUS_NONE)) { receiver.onSummary(JavaHLObjectFactory.createDiffSummary(diffStatus)); } } } };
public SVNDiffStatus toStatus() throws SVNException { return new SVNDiffStatus(myFile, myRootURL.appendPath(myPath, false), myPath, myType, myPropChanged, myKind); }
public static DiffSummary createDiffSummary(SVNDiffStatus status) { int diffStatus = -1; if (status.getModificationType() == SVNStatusType.STATUS_NORMAL || status.getModificationType() == SVNStatusType.STATUS_NONE) { diffStatus = 0; } else if (status.getModificationType() == SVNStatusType.STATUS_ADDED) { diffStatus = 1; } else if (status.getModificationType() == SVNStatusType.STATUS_MODIFIED) { diffStatus = 2; } else if (status.getModificationType() == SVNStatusType.STATUS_DELETED) { diffStatus = 3; } return new DiffSummary(status.getPath(), diffStatus, status.isPropertiesModified(), getNodeKind(status.getKind())); }
public void handleDiffStatus(SVNDiffStatus diffStatus) throws SVNException { if (receiver != null) { if (diffStatus != null && (diffStatus.isPropertiesModified() || (diffStatus.getModificationType() != SVNStatusType.STATUS_NORMAL && diffStatus.getModificationType() != SVNStatusType.STATUS_NONE))) { receiver.onSummary(JavaHLObjectFactory.createDiffSummary(diffStatus)); } } } };
public SVNDiffStatus toStatus() throws SVNException { return new SVNDiffStatus(new File(myAnchor, myPath), myRootURL.appendPath(myPath, false), myPath, myType, myPropChanged, myKind); }
public static DiffSummary createDiffSummary(SVNDiffStatus status) { int diffStatus = -1; if (status.getModificationType() == SVNStatusType.STATUS_NORMAL || status.getModificationType() == SVNStatusType.STATUS_NONE) { diffStatus = 0; } else if (status.getModificationType() == SVNStatusType.STATUS_ADDED) { diffStatus = 1; } else if (status.getModificationType() == SVNStatusType.STATUS_MODIFIED) { diffStatus = 2; } else if (status.getModificationType() == SVNStatusType.STATUS_DELETED) { diffStatus = 3; } return new DiffSummary(status.getPath(), diffStatus, status.isPropertiesModified(), getNodeKind(status.getKind())); }
public void handleDiffStatus(SVNDiffStatus diffStatus) throws SVNException { if (diffStatus != null && receiver != null) { if (diffStatus.isPropertiesModified() || (diffStatus.getModificationType() != SVNStatusType.STATUS_NORMAL && diffStatus.getModificationType() != SVNStatusType.STATUS_NONE)) { receiver.onSummary(JavaHLObjectFactory.createDiffSummary(diffStatus)); } } } };
public SVNDiffStatus toStatus() throws SVNException { return new SVNDiffStatus(new File(myAnchor, myPath), myRootURL.appendPath(myPath, false), myPath, myType, myPropChanged, myKind); }
public void handleDiffStatus(SVNDiffStatus diffStatus) throws SVNException { if (diffStatus != null && receiver != null) { if (diffStatus.isPropertiesModified() || (diffStatus.getModificationType() != SVNStatusType.STATUS_NORMAL && diffStatus.getModificationType() != SVNStatusType.STATUS_NONE)) { receiver.onSummary(JavaHLObjectFactory.createDiffSummary(diffStatus)); } } } };
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); }