public void handleStatus(SVNStatus status) throws SVNException { // log if (log.isDebugEnabled()) { log.debug(t("isisfish.vcs.vcssvn.global.filestatus", status.getFile().getAbsolutePath(), status .getRemoteNodeStatus().toString())); } if (status.getRemoteNodeStatus() == SVNStatusType.STATUS_ADDED || status.getRemoteNodeStatus() == SVNStatusType.STATUS_MODIFIED) { // log if (log.isDebugEnabled()) { log.debug(t("isisfish.vcs.vcssvn.global.foundUpdatedFile", status.getFile().getAbsolutePath())); } result.add(status.getFile()); } } };
public void handleStatus(SVNStatus status) throws SVNException { String relativePath = FileUtil.getPathRelativeToBase(status.getFile(), baseDirAbsolutePath); if (status.getContentsStatus().getID() == SVNStatusType.STATUS_NONE.getID() || status.getContentsStatus().getID() == SVNStatusType.STATUS_UNVERSIONED.getID()) { map.put(relativePath, Boolean.FALSE); } else { map.put(relativePath, Boolean.TRUE); } } }
private static SVNStatusType createEventStatusType(int id, String name) { SVNStatusType statusType = new SVNStatusType(id, name); eventStatusTypes.put(id, statusType); return statusType; }
commitAuthor = " ? "; result.append(combineStatus(status).getCode()); result.append(status.getPropertiesStatus().getCode()); result.append(status.isLocked() ? 'L' : ' '); result.append(status.isCopied() ? '+' : ' '); result.append(treeDescriptionLine); } else { result.append(combineStatus(status).getCode()); result.append(status.getPropertiesStatus().getCode()); result.append(status.isLocked() ? 'L' : ' '); result.append(status.isCopied() ? '+' : ' '); result.append(combineStatus(status).getCode()); result.append(status.getPropertiesStatus().getCode()); result.append(status.isLocked() ? 'L' : ' '); result.append(status.isCopied() ? '+' : ' ');
public static SVNStatusType getColumnStatusType(SVNSqlJetStatement stmt, Enum<?> f) throws SVNException { return SVNStatusType.getEventStatusById((int) stmt.getColumnLong(f)); }
commitAuthor = " ? "; result.append(combineStatus(status).getCode()); result.append(status.getPropertiesStatus().getCode()); result.append(status.isLocked() ? 'L' : ' '); result.append(status.isCopied() ? '+' : ' '); result.append(treeDescriptionLine); } else { result.append(combineStatus(status).getCode()); result.append(status.getPropertiesStatus().getCode()); result.append(status.isLocked() ? 'L' : ' '); result.append(status.isCopied() ? '+' : ' '); result.append(combineStatus(status).getCode()); result.append(status.getPropertiesStatus().getCode()); result.append(status.isLocked() ? 'L' : ' '); result.append(status.isCopied() ? '+' : ' ');
logger.debug( StringUtils.defaultString( status, event.getContentsStatus().toString() ) + " - " + event.getFile().getAbsolutePath() );
getSVNEnvironment().getOut().print(buffer.toString()); } else { getSVNEnvironment().getOut().print(diffStatus.getModificationType().getCode() + (diffStatus.isPropertiesModified() ? "M" : " ") + " " + path + "\n"); getSVNEnvironment().getOut().flush();
public void handleStatus(SVNStatus status) throws SVNException { String relativePath = FileUtil.getPathRelativeToBase(status.getFile(), baseDirAbsolutePath); if (status.getContentsStatus().getID() == SVNStatusType.STATUS_NONE.getID() || status.getContentsStatus().getID() == SVNStatusType.STATUS_UNVERSIONED.getID()) { map.put(relativePath, Boolean.FALSE); } else { map.put(relativePath, Boolean.TRUE); } } }
Map xmlMap = new LinkedHashMap(); xmlMap.put("props", status.getNodeStatus() != SVNStatusType.STATUS_DELETED ? status.getPropertiesStatus().toString() : SVNStatusType.STATUS_NONE.toString()); xmlMap.put("item", status.getCombinedNodeAndContentsStatus().toString()); if (status.isLocked()) { xmlMap.put("wc-locked", "true"); if (status.getRemoteNodeStatus() != SVNStatusType.STATUS_NONE || status.getRemotePropertiesStatus() != SVNStatusType.STATUS_NONE || status.getRemoteLock() != null) { xmlMap.put("props", status.getRemotePropertiesStatus().toString()); xmlMap.put("item", status.getCombinedRemoteNodeAndContentsStatus().toString()); xmlBuffer = openXMLTag("repos-status", SVNXMLUtil.XML_STYLE_NORMAL, xmlMap, xmlBuffer); if (status.getRemoteLock() != null) {
getSVNEnvironment().getOut().print(buffer.toString()); } else { getSVNEnvironment().getOut().print(diffStatus.getModificationType().getCode() + (diffStatus.isPropertiesModified() ? "M" : " ") + " " + path + "\n"); getSVNEnvironment().getOut().flush();
public static void updateMoveListAdd(SVNWCDbRoot wcRoot, File localRelPath, SVNEventAction eventAction, SVNNodeKind kind, SVNStatusType contentState, SVNStatusType propState) throws SVNException { SVNSqlJetStatement stmt = wcRoot.getSDb().getTemporaryDb().getStatement(SVNWCDbStatements.INSERT_UPDATE_MOVE_LIST); try { stmt.bindf("siiii", localRelPath, eventAction.getID(), kind.getID(), contentState.getID(), propState.getID()); stmt.done(); } finally { stmt.reset(); } }
Map xmlMap = new LinkedHashMap(); xmlMap.put("props", status.getNodeStatus() != SVNStatusType.STATUS_DELETED ? status.getPropertiesStatus().toString() : SVNStatusType.STATUS_NONE.toString()); xmlMap.put("item", status.getCombinedNodeAndContentsStatus().toString()); if (status.isLocked()) { xmlMap.put("wc-locked", "true"); if (status.getRemoteNodeStatus() != SVNStatusType.STATUS_NONE || status.getRemotePropertiesStatus() != SVNStatusType.STATUS_NONE || status.getRemoteLock() != null) { xmlMap.put("props", status.getRemotePropertiesStatus().toString()); xmlMap.put("item", status.getCombinedRemoteNodeAndContentsStatus().toString()); xmlBuffer = openXMLTag("repos-status", SVNXMLUtil.XML_STYLE_NORMAL, xmlMap, xmlBuffer); if (status.getRemoteLock() != null) {
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()) { addAttribute(WC_LOCKED_ATTR, TRUE); addAttribute(PROPS_ATTR, status.getRemotePropertiesStatus().toString()); addAttribute(ITEM_ATTR, status.getRemoteContentsStatus().toString()); openTag(REMOTE_STATUS_TAG); if (status.getRemoteLock() != null) {
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()) { addAttribute(WC_LOCKED_ATTR, TRUE); addAttribute(PROPS_ATTR, status.getRemotePropertiesStatus().toString()); addAttribute(ITEM_ATTR, status.getRemoteContentsStatus().toString()); openTag(REMOTE_STATUS_TAG); if (status.getRemoteLock() != null) {
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()) { addAttribute(WC_LOCKED_ATTR, TRUE); addAttribute(PROPS_ATTR, status.getRemotePropertiesStatus().toString()); addAttribute(ITEM_ATTR, status.getRemoteContentsStatus().toString()); openTag(REMOTE_STATUS_TAG); if (status.getRemoteLock() != null) {
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()) { addAttribute(WC_LOCKED_ATTR, TRUE); addAttribute(PROPS_ATTR, status.getRemotePropertiesStatus().toString()); addAttribute(ITEM_ATTR, status.getRemoteContentsStatus().toString()); openTag(REMOTE_STATUS_TAG); if (status.getRemoteLock() != null) {