public void handleStatus(SVNStatus status) { if (status.getEntryProperties() == null || status.getEntryProperties().isEmpty()) { return; } if (status.getContentsStatus() != SVNStatusType.STATUS_ADDED) { SVNRevision revision = status.getRevision(); if (revision != null) { if (minRevision[0] < 0 || minRevision[0] > revision.getNumber()) { minRevision[0] = revision.getNumber(); } maxRevision[0] = Math.max(maxRevision[0], revision.getNumber()); } } switched[0] |= status.isSwitched(); switched[1] |= status.getContentsStatus() != SVNStatusType.STATUS_NORMAL; switched[1] |= status.getPropertiesStatus() != SVNStatusType.STATUS_NORMAL && status.getPropertiesStatus() != SVNStatusType.STATUS_NONE; if (wcURL[0] == null && status.getFile() != null && status.getFile().equals(path) && status.getURL() != null) { wcURL[0] = status.getURL().toString(); } } });
public void handleStatus(SVNStatus status) throws SVNException { SVNEntry entry = status.getEntry(); if (entry == null) { return; } if (status.getContentsStatus() != SVNStatusType.STATUS_ADDED) { long itemRev = committed ? entry.getCommittedRevision() : entry.getRevision(); if (!SVNRevision.isValidRevisionNumber(minRev[0]) || itemRev < minRev[0]) { minRev[0] = itemRev; } if (!SVNRevision.isValidRevisionNumber(maxRev[0]) || itemRev > maxRev[0]) { maxRev[0] = itemRev; } } isSwitched[0] |= status.isSwitched(); isModified[0] |= status.getContentsStatus() != SVNStatusType.STATUS_NORMAL; isModified[0] |= status.getPropertiesStatus() != SVNStatusType.STATUS_NORMAL && status.getPropertiesStatus() != SVNStatusType.STATUS_NONE; isSparseCheckOut[0] |= entry.getDepth() != SVNDepth.INFINITY; if (wcPath != null && wcURL[0] == null && wcPath.equals(status.getFile())) { wcURL[0] = entry.getSVNURL(); } } });
public void handleStatus(SVNStatus status) throws SVNException { SVNEntry entry = status.getEntry(); if (entry == null) { return; } if (status.getContentsStatus() != SVNStatusType.STATUS_ADDED) { long itemRev = committed ? entry.getCommittedRevision() : entry.getRevision(); if (!SVNRevision.isValidRevisionNumber(minRev[0]) || itemRev < minRev[0]) { minRev[0] = itemRev; } if (!SVNRevision.isValidRevisionNumber(maxRev[0]) || itemRev > maxRev[0]) { maxRev[0] = itemRev; } } isSwitched[0] |= status.isSwitched(); isModified[0] |= status.getContentsStatus() != SVNStatusType.STATUS_NORMAL; isModified[0] |= status.getPropertiesStatus() != SVNStatusType.STATUS_NORMAL && status.getPropertiesStatus() != SVNStatusType.STATUS_NONE; isSparseCheckOut[0] |= entry.getDepth() != SVNDepth.INFINITY; if (wcPath != null && wcURL[0] == null && wcPath.equals(status.getFile())) { wcURL[0] = entry.getSVNURL(); } } });
public void handleStatus(SVNStatus status) throws SVNException { SVNEntry entry = status.getEntry(); if (entry == null) { return; } if (status.getContentsStatus() != SVNStatusType.STATUS_ADDED) { long itemRev = committed ? entry.getCommittedRevision() : entry.getRevision(); if (!SVNRevision.isValidRevisionNumber(minRev[0]) || itemRev < minRev[0]) { minRev[0] = itemRev; } if (!SVNRevision.isValidRevisionNumber(maxRev[0]) || itemRev > maxRev[0]) { maxRev[0] = itemRev; } } isSwitched[0] |= status.isSwitched(); isModified[0] |= status.getContentsStatus() != SVNStatusType.STATUS_NORMAL; isModified[0] |= status.getPropertiesStatus() != SVNStatusType.STATUS_NORMAL && status.getPropertiesStatus() != SVNStatusType.STATUS_NONE; isSparseCheckOut[0] |= entry.getDepth() != SVNDepth.INFINITY; if (wcPath != null && wcURL[0] == null && wcPath.equals(status.getFile())) { wcURL[0] = entry.getSVNURL(); } } });
public void handleStatus(SVNStatus status) { if (status.getEntryProperties() == null || status.getEntryProperties().isEmpty()) { return; } if (status.getContentsStatus() != SVNStatusType.STATUS_ADDED) { SVNRevision revision = committed ? status.getCommittedRevision() : status.getRevision(); if (revision != null) { if (minRevision[0] < 0 || minRevision[0] > revision.getNumber()) { minRevision[0] = revision.getNumber(); } maxRevision[0] = Math.max(maxRevision[0], revision.getNumber()); } } switched[0] |= status.isSwitched(); switched[1] |= status.getContentsStatus() != SVNStatusType.STATUS_NORMAL; switched[1] |= status.getPropertiesStatus() != SVNStatusType.STATUS_NORMAL && status.getPropertiesStatus() != SVNStatusType.STATUS_NONE; switched[2] |= status.getEntry() != null && status.getEntry().getDepth() != SVNDepth.INFINITY; if (wcURL[0] == null && status.getFile() != null && status.getFile().equals(path) && status.getURL() != null) { wcURL[0] = status.getURL().toString(); } } }, null);
public void handleStatus(SVNStatus status) throws SVNException { if (status.getContentsStatus() == SVNStatusType.STATUS_OBSTRUCTED) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.NODE_UNEXPECTED_KIND, "''{0}'' is in the way of the resource actually under version control", status.getFile()); SVNErrorManager.error(err, SVNLogType.WC); } else if (status.getEntry() == null) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.UNVERSIONED_RESOURCE, "''{0}'' is not under version control", status.getFile()); SVNErrorManager.error(err, SVNLogType.WC); } else if ((status.getContentsStatus() != SVNStatusType.STATUS_NORMAL && status.getContentsStatus() != SVNStatusType.STATUS_DELETED && status.getContentsStatus() != SVNStatusType.STATUS_MISSING) || (status.getPropertiesStatus() != SVNStatusType.STATUS_NONE && status.getPropertiesStatus() != SVNStatusType.STATUS_NORMAL)) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.CLIENT_MODIFIED, "''{0}'' has local modifications", status.getFile()); SVNErrorManager.error(err, SVNLogType.WC); } } }, null);
public void handleStatus(SVNStatus status) { if (status.getEntryProperties() == null || status.getEntryProperties().isEmpty()) { return; } if (status.getContentsStatus() != SVNStatusType.STATUS_ADDED) { SVNRevision revision = committed ? status.getCommittedRevision() : status.getRevision(); if (revision != null) { if (minRevision[0] < 0 || minRevision[0] > revision.getNumber()) { minRevision[0] = revision.getNumber(); } maxRevision[0] = Math.max(maxRevision[0], revision.getNumber()); } } switched[0] |= status.isSwitched(); switched[1] |= status.getContentsStatus() != SVNStatusType.STATUS_NORMAL; switched[1] |= status.getPropertiesStatus() != SVNStatusType.STATUS_NORMAL && status.getPropertiesStatus() != SVNStatusType.STATUS_NONE; switched[2] |= status.getEntry() != null && status.getEntry().getDepth() != SVNDepth.INFINITY; if (wcURL[0] == null && status.getFile() != null && status.getFile().equals(path) && status.getURL() != null) { wcURL[0] = status.getURL().toString(); } } }, null);
public void handleStatus(SVNStatus status) { if (status.getEntryProperties() == null || status.getEntryProperties().isEmpty()) { return; } if (status.getContentsStatus() != SVNStatusType.STATUS_ADDED && !status.isFileExternal()) { SVNRevision revision = getOperation().isCommitted() ? status.getCommittedRevision() : status.getRevision(); if (revision != null) { if (minRevision[0] < 0 || minRevision[0] > revision.getNumber()) { minRevision[0] = revision.getNumber(); } maxRevision[0] = Math.max(maxRevision[0], revision.getNumber()); } } switched[0] |= status.isSwitched(); switched[1] |= status.getContentsStatus() != SVNStatusType.STATUS_NORMAL; switched[1] |= status.getPropertiesStatus() != SVNStatusType.STATUS_NORMAL && status.getPropertiesStatus() != SVNStatusType.STATUS_NONE; switched[2] |= status.getEntry() != null && status.getEntry().getDepth() != SVNDepth.INFINITY; if (wcURL[0] == null && status.getFile() != null && status.getFile().equals(getFirstTarget()) && status.getURL() != null) { wcURL[0] = status.getURL().toString(); } } }, null);
public void handleStatus(SVNStatus status) throws SVNException { if (status.getContentsStatus() == SVNStatusType.STATUS_OBSTRUCTED) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.NODE_UNEXPECTED_KIND, "''{0}'' is in the way of the resource actually under version control", status.getFile()); SVNErrorManager.error(err); } else if (status.getEntry() == null) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.UNVERSIONED_RESOURCE, "''{0}'' is not under version control", status.getFile()); SVNErrorManager.error(err); } else if ((status.getContentsStatus() != SVNStatusType.STATUS_NORMAL && status.getContentsStatus() != SVNStatusType.STATUS_DELETED && status.getContentsStatus() != SVNStatusType.STATUS_MISSING) || (status.getPropertiesStatus() != SVNStatusType.STATUS_NONE && status.getPropertiesStatus() != SVNStatusType.STATUS_NORMAL)) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.CLIENT_MODIFIED, "''{0}'' has local modifications", status.getFile()); SVNErrorManager.error(err); } } });
public void handleStatus(SVNStatus status) throws SVNException { if (status.getContentsStatus() == SVNStatusType.STATUS_OBSTRUCTED) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.NODE_UNEXPECTED_KIND, "''{0}'' is in the way of the resource actually under version control", status.getFile()); SVNErrorManager.error(err, SVNLogType.WC); } else if (status.getEntry() == null) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.UNVERSIONED_RESOURCE, "''{0}'' is not under version control", status.getFile()); SVNErrorManager.error(err, SVNLogType.WC); } else if ((status.getContentsStatus() != SVNStatusType.STATUS_NORMAL && status.getContentsStatus() != SVNStatusType.STATUS_DELETED && status.getContentsStatus() != SVNStatusType.STATUS_MISSING) || (status.getPropertiesStatus() != SVNStatusType.STATUS_NONE && status.getPropertiesStatus() != SVNStatusType.STATUS_NORMAL)) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.CLIENT_MODIFIED, "''{0}'' has local modifications", status.getFile()); SVNErrorManager.error(err, SVNLogType.WC); } } }, null);
public void handleStatus(SVNStatus status) throws SVNException { if (status.getContentsStatus() == SVNStatusType.STATUS_OBSTRUCTED) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.NODE_UNEXPECTED_KIND, "''{0}'' is in the way of the resource actually under version control", status.getFile()); SVNErrorManager.error(err, SVNLogType.WC); } else if (status.getEntry() == null) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.UNVERSIONED_RESOURCE, "''{0}'' is not under version control", status.getFile()); SVNErrorManager.error(err, SVNLogType.WC); } else if ((status.getContentsStatus() != SVNStatusType.STATUS_NORMAL && status.getContentsStatus() != SVNStatusType.STATUS_DELETED && status.getContentsStatus() != SVNStatusType.STATUS_MISSING) || (status.getPropertiesStatus() != SVNStatusType.STATUS_NONE && status.getPropertiesStatus() != SVNStatusType.STATUS_NORMAL)) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.CLIENT_MODIFIED, "''{0}'' has local modifications", status.getFile()); SVNErrorManager.error(err, SVNLogType.WC); } } }, null);
return true; if (status.getPropertiesStatus() != SVNStatusType.STATUS_NONE && status.getPropertiesStatus() != SVNStatusType.STATUS_NORMAL) { return true;
return true; if (status.getPropertiesStatus() != SVNStatusType.STATUS_NONE && status.getPropertiesStatus() != SVNStatusType.STATUS_NORMAL) { return true;
return true; if (status.getPropertiesStatus() != SVNStatusType.STATUS_NONE && status.getPropertiesStatus() != SVNStatusType.STATUS_NORMAL) { return true;
return true; if (status.getPropertiesStatus() != SVNStatusType.STATUS_NONE && status.getPropertiesStatus() != SVNStatusType.STATUS_NORMAL) { return true;
result.setPropertiesStatus(status.getPropertiesStatus());
private void sendToHandler(SVNStatus status) throws SAXException { addAttribute(PATH_ATTR, getRelativePath(status.getFile())); openTag(ENTRY_TAG); addAttribute(PROPS_ATTR, status.getPropertiesStatus().toString()); addAttribute(ITEM_ATTR, status.getContentsStatus().toString()); if (status.isLocked()) {
private void sendToHandler(SVNStatus status) throws SAXException { addAttribute(PATH_ATTR, getRelativePath(status.getFile())); openTag(ENTRY_TAG); addAttribute(PROPS_ATTR, status.getPropertiesStatus().toString()); addAttribute(ITEM_ATTR, status.getContentsStatus().toString()); if (status.isLocked()) {
private void sendToHandler(SVNStatus status) throws SAXException { addAttribute(PATH_ATTR, getRelativePath(status.getFile())); openTag(ENTRY_TAG); addAttribute(PROPS_ATTR, status.getPropertiesStatus().toString()); addAttribute(ITEM_ATTR, status.getContentsStatus().toString()); if (status.isLocked()) {
private void sendToHandler(SVNStatus status) throws SAXException { addAttribute(PATH_ATTR, getRelativePath(status.getFile())); openTag(ENTRY_TAG); addAttribute(PROPS_ATTR, status.getPropertiesStatus().toString()); addAttribute(ITEM_ATTR, status.getContentsStatus().toString()); if (status.isLocked()) {