public void receive(SvnTarget target, SVNProperties object) throws SVNException { if (propName != null && object.containsName(propName)) { data[0] = new SVNPropertyData(propName, object.getSVNPropertyValue(propName), getOptions()); } } });
public void receive(SvnTarget target, SVNProperties object) throws SVNException { if (propName != null && object.containsName(propName)) { data[0] = new SVNPropertyData(propName, object.getSVNPropertyValue(propName), getOptions()); } } });
private void addFile(File path, SVNFileType type, SVNAdminArea dir) throws SVNException { SVNWCManager.add(path, dir, null, SVNRevision.UNDEFINED); String mimeType = null; if (type == SVNFileType.SYMLINK) { SVNPropertiesManager.setProperty(dir.getWCAccess(), path, SVNProperty.SPECIAL, SVNProperty.getValueOfBooleanProperty(SVNProperty.SPECIAL), false); } else { Map props = SVNPropertiesManager.computeAutoProperties(getOptions(), path); for (Iterator names = props.keySet().iterator(); names.hasNext();) { String propName = (String) names.next(); String propValue = (String) props.get(propName); SVNPropertiesManager.setProperty(dir.getWCAccess(), path, propName, propValue, false); } mimeType = (String) props.get(SVNProperty.MIME_TYPE); } SVNEvent event = SVNEventFactory.createAddedEvent(dir, path.getName(), SVNNodeKind.FILE, mimeType); dispatchEvent(event); }
private void doGetRevisionProperty(SVNRepository repos, String propName, long revNumber, ISVNPropertyHandler handler) throws SVNException { if (propName != null) { SVNPropertyValue value = repos.getRevisionPropertyValue(revNumber, propName); if (value != null) { handler.handleProperty(revNumber, new SVNPropertyData(propName, value, getOptions())); } } else { SVNProperties props = new SVNProperties(); repos.getRevisionProperties(revNumber, props); for (Iterator names = props.nameSet().iterator(); names.hasNext();) { String name = (String) names.next(); SVNPropertyValue value = props.getSVNPropertyValue(name); handler.handleProperty(revNumber, new SVNPropertyData(name, value, getOptions())); } } }
private void doGetRevisionProperty(SVNRepository repos, String propName, long revNumber, ISVNPropertyHandler handler) throws SVNException { if (propName != null) { SVNPropertyValue value = repos.getRevisionPropertyValue(revNumber, propName); if (value != null) { handler.handleProperty(revNumber, new SVNPropertyData(propName, value, getOptions())); } } else { SVNProperties props = new SVNProperties(); repos.getRevisionProperties(revNumber, props); for (Iterator names = props.nameSet().iterator(); names.hasNext();) { String name = (String) names.next(); SVNPropertyValue value = props.getSVNPropertyValue(name); handler.handleProperty(revNumber, new SVNPropertyData(name, value, getOptions())); } } }
public void receive(SvnTarget target, SVNProperties object) throws SVNException { if (propName != null && object.containsName(propName)) { SVNPropertyData propertyData = new SVNPropertyData(propName, object.getSVNPropertyValue(propName), getOptions()); handler.handleProperty(target.getURL(), propertyData); } else if (propName == null) { for (Object propertyName : object.nameSet()) { String name = propertyName.toString(); SVNPropertyData propertyData = new SVNPropertyData(name, object.getSVNPropertyValue(name), getOptions()); handler.handleProperty(target.getURL(), propertyData); } } } });
try { if (!force) { SVNWCManager.canDelete(path, false, getOptions());
/** * Recursively removes all DAV-specific <span * class="javakeyword">"svn:wc:"</span> properties from the * <code>directory</code> and beneath. * * <p> * This method does not connect to a repository, it's a local operation * only. Nor does it change any user's versioned data. Changes are made only * in administrative version control files. * * @param directory * working copy path * @throws SVNException * @since 1.2 */ public void doCleanupWCProperties(File directory) throws SVNException { SVNWCClient16 oldClient = new SVNWCClient16(getOperationsFactory().getAuthenticationManager(), getOptions()); oldClient.doCleanupWCProperties(directory); }
public void receive(SvnTarget target, SVNProperties object) throws SVNException { if (propName == null) { for (String name : object.nameSet()) { SVNPropertyData pdata = new SVNPropertyData(name, object.getSVNPropertyValue(name), getOptions()); if (handler != null) { handler.handleProperty(getProperties.getRevisionNumber(), pdata); } } } else if (propName != null && object.containsName(propName)) { SVNPropertyData pdata = new SVNPropertyData(propName, object.getSVNPropertyValue(propName), getOptions()); if (handler != null) { handler.handleProperty(getProperties.getRevisionNumber(), pdata); } } } });
public void receive(SvnTarget target, SVNProperties object) throws SVNException { if (propName == null) { for (String name : object.nameSet()) { SVNPropertyData pdata = new SVNPropertyData(name, object.getSVNPropertyValue(name), getOptions()); if (handler != null) { handler.handleProperty(getProperties.getRevisionNumber(), pdata); } } } else if (propName != null && object.containsName(propName)) { SVNPropertyData pdata = new SVNPropertyData(propName, object.getSVNPropertyValue(propName), getOptions()); if (handler != null) { handler.handleProperty(getProperties.getRevisionNumber(), pdata); } } } });
public void handleEntry(File path, SVNEntry entry) throws SVNException { SVNAdminArea adminArea = entry.getAdminArea(); if (entry.isDirectory() && !entry.isThisDir()) { return; } if ((myIsPristine && entry.isScheduledForAddition()) || (!myIsPristine && entry.isScheduledForDeletion())) { return; } if (!SVNWCAccess.matchesChangeList(myChangeLists, entry)) { return; } SVNVersionedProperties properties = myIsPristine ? adminArea.getBaseProperties(entry.getName()) : adminArea.getProperties(entry.getName()); if (myPropName != null) { SVNPropertyValue propValue = properties.getPropertyValue(myPropName); if (propValue != null) { myPropHandler.handleProperty(path, new SVNPropertyData(myPropName, propValue, getOptions())); } } else { SVNProperties allProps = properties.asMap(); for (Iterator names = allProps.nameSet().iterator(); names.hasNext();) { String name = (String) names.next(); SVNPropertyValue val = allProps.getSVNPropertyValue(name); myPropHandler.handleProperty(path, new SVNPropertyData(name, val, getOptions())); } } }
try { SVNAdminAreaInfo info = wcAccess.openAnchor(path, true, recursive ? SVNWCAccess.INFINITE_DEPTH : 0); boolean useCommitTimes = getOptions().isUseCommitTimes(); doRevert(path, info.getAnchor(), recursive, useCommitTimes); } catch (SVNException e) {
public void handleEntry(File path, SVNEntry entry) throws SVNException { SVNAdminArea adminArea = entry.getAdminArea(); if (entry.isDirectory() && !entry.isThisDir()) { return; } if ((myIsPristine && entry.isScheduledForAddition()) || (!myIsPristine && entry.isScheduledForDeletion())) { return; } if (!SVNWCAccess.matchesChangeList(myChangeLists, entry)) { return; } SVNVersionedProperties properties = myIsPristine ? adminArea.getBaseProperties(entry.getName()) : adminArea.getProperties(entry.getName()); if (myPropName != null) { SVNPropertyValue propValue = properties.getPropertyValue(myPropName); if (propValue != null) { myPropHandler.handleProperty(path, new SVNPropertyData(myPropName, propValue, getOptions())); } } else { SVNProperties allProps = properties.asMap(); for (Iterator names = allProps.nameSet().iterator(); names.hasNext();) { String name = (String) names.next(); SVNPropertyValue val = allProps.getSVNPropertyValue(name); myPropHandler.handleProperty(path, new SVNPropertyData(name, val, getOptions())); } } }
public void receive(SvnTarget target, SVNProperties object) throws SVNException { if (propName != null && object.containsName(propName)) { SVNPropertyData propertyData = new SVNPropertyData(propName, object.getSVNPropertyValue(propName), getOptions()); if (target.isFile()) { handler.handleProperty(target.getFile(), propertyData); } else { handler.handleProperty(target.getURL(), propertyData); } } else if (propName == null) { for (Object propertyName : object.nameSet()) { String name = propertyName.toString(); SVNPropertyData propertyData = new SVNPropertyData(name, object.getSVNPropertyValue(name), getOptions()); if (target.isFile()) { handler.handleProperty(target.getFile(), propertyData); } else { handler.handleProperty(target.getURL(), propertyData); } } } } });
SVNPropertyValue propValue = properties.getPropertyValue(propName); if (propValue != null) { handler.handleProperty(target, new SVNPropertyData(propName, propValue, getOptions())); String name = (String) names.next(); SVNPropertyValue val = allProps.getSVNPropertyValue(name); handler.handleProperty(area.getFile(entry.getName()), new SVNPropertyData(name, val, getOptions()));
SVNPropertyValue propValue = properties.getPropertyValue(propName); if (propValue != null) { handler.handleProperty(target, new SVNPropertyData(propName, propValue, getOptions())); String name = (String) names.next(); SVNPropertyValue val = allProps.getSVNPropertyValue(name); handler.handleProperty(area.getFile(entry.getName()), new SVNPropertyData(name, val, getOptions()));
public void handleEntry(File path, SVNEntry entry) throws SVNException { SVNAdminArea adminArea = entry.getAdminArea(); if (entry.isDirectory() && !adminArea.getThisDirName().equals(entry.getName())) { return; } if (entry.isScheduledForDeletion()) { return; } if (!SVNWCAccess.matchesChangeList(myChangeLists, entry)) { return; } try { boolean modified = SVNPropertiesManager.setProperty(adminArea.getWCAccess(), path, myPropName, myPropValue, myIsForce); if (modified && myPropHandler != null) { myPropHandler.handleProperty(path, new SVNPropertyData(myPropName, myPropValue, getOptions())); } } catch (SVNException svne) { if (svne.getErrorMessage().getErrorCode() != SVNErrorCode.ILLEGAL_TARGET) { throw svne; } } }
public void handleEntry(File path, SVNEntry entry) throws SVNException { SVNAdminArea adminArea = entry.getAdminArea(); if (entry.isDirectory() && !adminArea.getThisDirName().equals(entry.getName())) { return; } if (entry.isScheduledForDeletion()) { return; } if (!SVNWCAccess.matchesChangeList(myChangeLists, entry)) { return; } try { boolean modified = SVNPropertiesManager.setProperty(adminArea.getWCAccess(), path, myPropName, myPropValue, myIsForce); if (modified && myPropHandler != null) { myPropHandler.handleProperty(path, new SVNPropertyData(myPropName, myPropValue, getOptions())); } } catch (SVNException svne) { if (svne.getErrorMessage().getErrorCode() != SVNErrorCode.ILLEGAL_TARGET) { throw svne; } } }
Collection ignores = Collections.EMPTY_SET; if (!noIgnore) { ignores = SVNStatusEditor.getIgnorePatterns(dir, SVNStatusEditor.getGlobalIgnores(getOptions()));
upgrade.run(); } else { SVNWCClient16 oldClient = new SVNWCClient16(getOperationsFactory().getAuthenticationManager(), getOptions()); oldClient.doSetWCFormat(directory, format);