public void handleAdminEvent(SVNAdminEvent event, double progress) throws SVNException { if (event != null && event.getAction() == SVNAdminEventAction.REVISION_DUMPED) { getEnvironment().getErr().println(event.getMessage()); } }
public void handleAdminEvent(SVNAdminEvent event, double progress) throws SVNException { if (event != null && event.getAction() == SVNAdminEventAction.TRANSACTION_REMOVED) { if (!getSVNAdminEnvironment().isQuiet()) { String txnName = event.getTxnName(); getEnvironment().getOut().println("Transaction '" + txnName + "' removed."); } } else if (event.getError() != null) { getEnvironment().handleError(event.getError()); } }
protected void handleNormalizedProperties(int normalizedRevPropsCount, int normalizedNodePropsCount) throws SVNException { if (myEventHandler != null && (normalizedRevPropsCount > 0 || normalizedNodePropsCount > 0)) { String message = MessageFormat.format("NOTE: Normalized {0}* properties to LF line endings ({1} rev-props, {2} node-props).", new Object[] { SVNProperty.SVN_PREFIX, String.valueOf(normalizedRevPropsCount), String.valueOf(normalizedNodePropsCount) }); SVNAdminEvent event = new SVNAdminEvent(SVNAdminEventAction.NORMALIZED_PROPERTIES, message); myEventHandler.handleAdminEvent(event, ISVNEventHandler.UNKNOWN); } }
public void handleAdminEvent(SVNAdminEvent event, double progress) throws SVNException { if (event != null && event.getAction() == SVNAdminEventAction.TRANSACTION_LISTED) { getEnvironment().getOut().print(event.getTxnName() + "\n"); } }
String message = MessageFormat.format("Dropped {0} revision(s).", new Object[] { String.valueOf(handler.getDroppedRevisionsCount()) }); SVNAdminEvent event = new SVNAdminEvent(SVNAdminEventAction.DUMP_FILTER_TOTAL_REVISIONS_DROPPED, message); event.setDroppedRevisionsCount(handler.getDroppedRevisionsCount()); myEventHandler.handleAdminEvent(event, ISVNEventHandler.UNKNOWN); if (revItem.wasDropped()) { String message = MessageFormat.format("{0} => (dropped)", new Object[] { revision.toString() }); SVNAdminEvent event = new SVNAdminEvent(revision.longValue(), SVNAdminEventAction.DUMP_FILTER_DROPPED_RENUMBERED_REVISION, message); myEventHandler.handleAdminEvent(event, ISVNEventHandler.UNKNOWN); String message = MessageFormat.format("{0} => {1}", new Object[] { revision.toString(), String.valueOf(revItem.getRevision()) }); SVNAdminEvent event = new SVNAdminEvent(revItem.getRevision(), revision.longValue(), SVNAdminEventAction.DUMP_FILTER_RENUMBERED_REVISION, message); myEventHandler.handleAdminEvent(event, ISVNEventHandler.UNKNOWN); String message = MessageFormat.format("Dropped {0} node(s)", new Object[] { String.valueOf(droppedNodes.size()) }); SVNAdminEvent event = new SVNAdminEvent(SVNAdminEventAction.DUMP_FILTER_TOTAL_NODES_DROPPED, message); event.setDroppedNodesCount(droppedNodes.size()); myEventHandler.handleAdminEvent(event, ISVNEventHandler.UNKNOWN); String[] paths = (String[]) droppedNodes.keySet().toArray(new String[droppedNodes.size()]); String path = paths[i]; message = "'" + path + "'";
public void handleAdminEvent(SVNAdminEvent event, double progress) throws SVNException { if (receiver != null && event.getTxnName() != null) { receiver.receiveMessageLine(event.getTxnName()); } } });
public void handleAdminEvent(SVNAdminEvent event, double progress) throws SVNException { if (event.getAction() == SVNAdminEventAction.RECOVERY_STARTED) { getEnvironment().getOut().println("Repository lock acquired."); getEnvironment().getOut().println("Please wait; recovering the repository may take some time..."); } }
public void handleAdminEvent(SVNAdminEvent event, double progress) throws SVNException { if (event.getAction() == SVNAdminEventAction.PACK_START) { getEnvironment().getOut().print("Packing shard " + event.getShard() + "..."); } else if (event.getAction() == SVNAdminEventAction.PACK_END) { getEnvironment().getOut().println("done."); } }
String message = MessageFormat.format("Dropped {0} revision(s).", new Object[] { String.valueOf(handler.getDroppedRevisionsCount()) }); SVNAdminEvent event = new SVNAdminEvent(SVNAdminEventAction.DUMP_FILTER_TOTAL_REVISIONS_DROPPED, message); event.setDroppedRevisionsCount(handler.getDroppedRevisionsCount()); myEventHandler.handleAdminEvent(event, ISVNEventHandler.UNKNOWN); if (revItem.wasDropped()) { String message = MessageFormat.format("{0} => (dropped)", new Object[] { revision.toString() }); SVNAdminEvent event = new SVNAdminEvent(revision.longValue(), SVNAdminEventAction.DUMP_FILTER_DROPPED_RENUMBERED_REVISION, message); myEventHandler.handleAdminEvent(event, ISVNEventHandler.UNKNOWN); String message = MessageFormat.format("{0} => {1}", new Object[] { revision.toString(), String.valueOf(revItem.getRevision()) }); SVNAdminEvent event = new SVNAdminEvent(revItem.getRevision(), revision.longValue(), SVNAdminEventAction.DUMP_FILTER_RENUMBERED_REVISION, message); myEventHandler.handleAdminEvent(event, ISVNEventHandler.UNKNOWN); String message = MessageFormat.format("Dropped {0} node(s)", new Object[] { String.valueOf(droppedNodes.size()) }); SVNAdminEvent event = new SVNAdminEvent(SVNAdminEventAction.DUMP_FILTER_TOTAL_NODES_DROPPED, message); event.setDroppedNodesCount(droppedNodes.size()); myEventHandler.handleAdminEvent(event, ISVNEventHandler.UNKNOWN); String[] paths = (String[]) droppedNodes.keySet().toArray(new String[droppedNodes.size()]); String path = paths[i]; message = "'" + path + "'";
public void handleAdminEvent(SVNAdminEvent event, double progress) throws SVNException { if (event != null && event.getAction() == SVNAdminEventAction.TRANSACTION_LISTED) { getEnvironment().getOut().print(event.getTxnName() + "\n"); } }
public void handleAdminEvent(SVNAdminEvent event, double progress) throws SVNException { if (receiver != null && event.getTxnName() != null) { receiver.receiveMessageLine(event.getTxnName()); } } });
public void handleAdminEvent(SVNAdminEvent event, double progress) throws SVNException { if (event.getAction() == SVNAdminEventAction.UPGRADE) { getEnvironment().getOut().println("Repository lock acquired."); getEnvironment().getOut().println("Please wait; upgrading the repository may take some time..."); } }
public void handleAdminEvent(SVNAdminEvent event, double progress) throws SVNException { if (event.getAction() == SVNAdminEventAction.PACK_START) { getEnvironment().getOut().print("Packing shard " + event.getShard() + "..."); } else if (event.getAction() == SVNAdminEventAction.PACK_END) { getEnvironment().getOut().println("done."); } }
public void handleAdminEvent(SVNAdminEvent event, double progress) throws SVNException { if (messageOut != null && event.getAction() == SVNAdminEventAction.REVISION_DUMPED) { try { messageOut.write(event.getMessage().getBytes()); messageOut.write(client.getOptions().getNativeEOL()); } catch (IOException e) { } } } });
private void firePackEvent(long shard, boolean start) throws SVNException { if (myNotifyHandler != null) { SVNAdminEvent event = new SVNAdminEvent(start ? SVNAdminEventAction.PACK_START : SVNAdminEventAction.PACK_END, shard); myNotifyHandler.handleAdminEvent(event, ISVNEventHandler.UNKNOWN); } }
public void handleAdminEvent(SVNAdminEvent event, double progress) throws SVNException { if (event != null && event.getAction() == SVNAdminEventAction.TRANSACTION_REMOVED) { if (!getSVNAdminEnvironment().isQuiet()) { String txnName = event.getTxnName(); getEnvironment().getOut().println("Transaction '" + txnName + "' removed."); } } else if (event.getError() != null) { getEnvironment().handleError(event.getError()); } }
String message = MessageFormat.format("Dropped {0} revision(s).", new Object[] { String.valueOf(handler.getDroppedRevisionsCount()) }); SVNAdminEvent event = new SVNAdminEvent(SVNAdminEventAction.DUMP_FILTER_TOTAL_REVISIONS_DROPPED, message); event.setDroppedRevisionsCount(handler.getDroppedRevisionsCount()); myEventHandler.handleAdminEvent(event, ISVNEventHandler.UNKNOWN); if (revItem.wasDropped()) { String message = MessageFormat.format("{0} => (dropped)", new Object[] { revision.toString() }); SVNAdminEvent event = new SVNAdminEvent(revision.longValue(), SVNAdminEventAction.DUMP_FILTER_DROPPED_RENUMBERED_REVISION, message); myEventHandler.handleAdminEvent(event, ISVNEventHandler.UNKNOWN); String message = MessageFormat.format("{0} => {1}", new Object[] { revision.toString(), String.valueOf(revItem.getRevision()) }); SVNAdminEvent event = new SVNAdminEvent(revItem.getRevision(), revision.longValue(), SVNAdminEventAction.DUMP_FILTER_RENUMBERED_REVISION, message); myEventHandler.handleAdminEvent(event, ISVNEventHandler.UNKNOWN); String message = MessageFormat.format("Dropped {0} node(s)", new Object[] { String.valueOf(droppedNodes.size()) }); SVNAdminEvent event = new SVNAdminEvent(SVNAdminEventAction.DUMP_FILTER_TOTAL_NODES_DROPPED, message); event.setDroppedNodesCount(droppedNodes.size()); myEventHandler.handleAdminEvent(event, ISVNEventHandler.UNKNOWN); String[] paths = (String[]) droppedNodes.keySet().toArray(new String[droppedNodes.size()]); String path = paths[i]; message = "'" + path + "'";