/** * Returns an instance of the {@link SVNStatusClient} class. * * <p> * If it's the first time this method is being called the object is * created, initialized and then returned. Further calls to this * method will get the same object instantiated at that moment of * the first call. <b>SVNClientManager</b> does not reinstantiate * its <b>SVN</b>*<b>Client</b> objects. * * @return an <b>SVNStatusClient</b> instance */ public SVNStatusClient getStatusClient() { if (myStatusClient == null) { myStatusClient = myOperationFactory != null ? new SVNStatusClient(myOperationFactory) : new SVNStatusClient(this, myOptions); initClientDefaults(myStatusClient); } return myStatusClient; }
public static void canDelete(File path, boolean skipIgnored, ISVNOptions options) throws SVNException { SVNStatusClient statusClient = new SVNStatusClient((ISVNAuthenticationManager) null, options); statusClient.doStatus(path, SVNRevision.UNDEFINED, true, false, false, !skipIgnored, false, new ISVNStatusHandler() { 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 static void canDelete(File path, ISVNOptions options, final ISVNEventHandler eventHandler) throws SVNException { SVNStatusClient statusClient = new SVNStatusClient((ISVNAuthenticationManager) null, options); if (eventHandler != null) { statusClient.setEventHandler(new ISVNEventHandler() { public void checkCancelled() throws SVNCancelException { eventHandler.checkCancelled(); } public void handleEvent(SVNEvent event, double progress) throws SVNException { } }); } statusClient.doStatus(path, SVNRevision.UNDEFINED, SVNDepth.INFINITY, false, false, false, false, new ISVNStatusHandler() { 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 static void canDelete(File path, ISVNOptions options, final ISVNEventHandler eventHandler) throws SVNException { SVNStatusClient statusClient = new SVNStatusClient((ISVNAuthenticationManager) null, options); if (eventHandler != null) { statusClient.setEventHandler(new ISVNEventHandler() { public void checkCancelled() throws SVNCancelException { eventHandler.checkCancelled(); } public void handleEvent(SVNEvent event, double progress) throws SVNException { } }); } statusClient.doStatus(path, SVNRevision.UNDEFINED, SVNDepth.INFINITY, false, false, false, false, new ISVNStatusHandler() { 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 static void canDelete(File path, ISVNOptions options, final ISVNEventHandler eventHandler) throws SVNException { SVNStatusClient statusClient = new SVNStatusClient((ISVNAuthenticationManager) null, options); if (eventHandler != null) { statusClient.setEventHandler(new ISVNEventHandler() { public void checkCancelled() throws SVNCancelException { eventHandler.checkCancelled(); } public void handleEvent(SVNEvent event, double progress) throws SVNException { } }); } statusClient.doStatus(path, SVNRevision.UNDEFINED, SVNDepth.INFINITY, false, false, false, false, new ISVNStatusHandler() { 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); }
/** * Returns an instance of the {@link SVNStatusClient} class. * * <p> * If it's the first time this method is being called the object is * created, initialized and then returned. Further calls to this * method will get the same object instantiated at that moment of * the first call. <b>SVNClientManager</b> does not reinstantiate * its <b>SVN</b>*<b>Client</b> objects. * * @return an <b>SVNStatusClient</b> instance */ public SVNStatusClient getStatusClient() { if (myStatusClient == null) { myStatusClient = new SVNStatusClient(this, myOptions); myStatusClient.setEventHandler(myEventHandler); myStatusClient.setDebugLog(getDebugLog()); } return myStatusClient; }
wcAccess.close(); SVNStatusClient statusClient = new SVNStatusClient((ISVNAuthenticationManager) null, getOptions()); statusClient.setIgnoreExternals(true); final long[] maxRevision = new long[1];
wcAccess.close(); SVNStatusClient statusClient = new SVNStatusClient((ISVNAuthenticationManager) null, getOptions()); statusClient.setIgnoreExternals(true); final long[] maxRevision = new long[1];
/** * Returns an instance of the {@link SVNStatusClient} class. * * <p> * If it's the first time this method is being called the object is * created, initialized and then returned. Further calls to this * method will get the same object instantiated at that moment of * the first call. <b>SVNClientManager</b> does not reinstantiate * its <b>SVN</b>*<b>Client</b> objects. * * @return an <b>SVNStatusClient</b> instance */ public SVNStatusClient getStatusClient() { if (myStatusClient == null) { myStatusClient = new SVNStatusClient(this, myOptions); myStatusClient.setEventHandler(myEventHandler); myStatusClient.setDebugLog(getDebugLog()); myStatusClient.setIgnoreExternals(myIsIgnoreExternals); } return myStatusClient; }
/** * Returns an instance of the {@link SVNStatusClient} class. * * <p> * If it's the first time this method is being called the object is * created, initialized and then returned. Further calls to this * method will get the same object instantiated at that moment of * the first call. <b>SVNClientManager</b> does not reinstantiate * its <b>SVN</b>*<b>Client</b> objects. * * @return an <b>SVNStatusClient</b> instance */ public SVNStatusClient getStatusClient() { if (myStatusClient == null) { myStatusClient = new SVNStatusClient(this, myOptions); myStatusClient.setEventHandler(myEventHandler); myStatusClient.setDebugLog(getDebugLog()); myStatusClient.setIgnoreExternals(myIsIgnoreExternals); } return myStatusClient; }
wcAccess.close(); SVNStatusClient statusClient = new SVNStatusClient((ISVNAuthenticationManager) null, getOptions()); statusClient.setIgnoreExternals(true); final long[] maxRevision = new long[1];
SVNStatusClient statusClient = new SVNStatusClient(getRepositoryPool(), getOptions()); statusClient.setEventHandler(new ISVNEventHandler() { public void handleEvent(SVNEvent event, double progress) throws SVNException {
SVNStatusClient statusClient = new SVNStatusClient(getRepositoryPool(), getOptions()); statusClient.setEventHandler(new ISVNEventHandler() { public void handleEvent(SVNEvent event, double progress) throws SVNException {
SVNStatusClient statusClient = new SVNStatusClient(getRepositoryPool(), getOptions()); statusClient.setEventHandler(new ISVNEventHandler() { public void handleEvent(SVNEvent event, double progress) throws SVNException {
SVNStatusClient statusClient = new SVNStatusClient(getRepositoryPool(), getOptions()); statusClient.setEventHandler(new ISVNEventHandler() { public void handleEvent(SVNEvent event, double progress) throws SVNException {
SVNStatusClient statusClient = new SVNStatusClient(getRepositoryPool(), getOptions()); statusClient.setEventHandler(new ISVNEventHandler() { public void handleEvent(SVNEvent event, double progress) throws SVNException {
SVNStatusClient statusClient = new SVNStatusClient(getRepositoryPool(), getOptions()); statusClient.setEventHandler(new ISVNEventHandler() { public void handleEvent(SVNEvent event, double progress) throws SVNException {