public boolean containsProperty(String name) throws SVNException { if (!isEmpty()) { SVNProperties props = loadProperties(); return props.containsName(name); } return false; }
public boolean containsProperty(String name) throws SVNException { if (!isEmpty()) { SVNProperties props = loadProperties(); return props.containsName(name); } return false; }
public boolean containsProperty(String name) throws SVNException { if (!isEmpty()) { SVNProperties props = loadProperties(); return props.containsName(name); } return false; }
public FSCommitEditor(String path, Map<String, String> lockTokens, boolean keepLocks, FSTransactionInfo txn, FSFS owner, FSRepository repository, SVNProperties revProps) { myPathsToLockTokens = !keepLocks ? lockTokens : null; myLockTokens = lockTokens != null ? lockTokens.values() : new HashSet<String>(); myBasePath = path; myTxn = txn; isTxnOwner = txn == null; myRepository = repository; myFSFS = owner; myDirsStack = new Stack<DirBaton>(); myRevProps = revProps != null ? revProps : new SVNProperties(); if (!myRevProps.containsName(SVNRevisionProperty.SVN_TXN_CLIENT_COMPAT_VERSION)) { myRevProps.put(SVNRevisionProperty.SVN_TXN_CLIENT_COMPAT_VERSION, Version.getSVNVersion()); } }
public boolean containsProperty(String name) throws SVNException { return getProperties() != null && getProperties().containsName(name); }
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()); } } });
public static File maybeUpdateTargetEOLs(SVNAdminArea dir, File target, SVNProperties propDiff) throws SVNException { String eolStyle = null; if (propDiff != null && propDiff.containsName(SVNProperty.EOL_STYLE) && propDiff.getStringValue(SVNProperty.EOL_STYLE) != null) { eolStyle = propDiff.getStringValue(SVNProperty.EOL_STYLE); ISVNOptions options = dir.getWCAccess().getOptions(); byte[] eol = getEOL(eolStyle, options); File tmpFile = SVNAdminUtil.createTmpFile(dir); copyAndTranslate(target, tmpFile, null, eol, null, false, false, true); return tmpFile; } return target; }
public static File maybeUpdateTargetEOLs(SVNAdminArea dir, File target, SVNProperties propDiff) throws SVNException { String eolStyle = null; if (propDiff != null && propDiff.containsName(SVNProperty.EOL_STYLE) && propDiff.getStringValue(SVNProperty.EOL_STYLE) != null) { eolStyle = propDiff.getStringValue(SVNProperty.EOL_STYLE); ISVNOptions options = dir.getWCAccess().getOptions(); byte[] eol = getEOL(eolStyle, options); File tmpFile = SVNAdminUtil.createTmpFile(dir); copyAndTranslate(target, tmpFile, null, eol, null, false, false, true); return tmpFile; } return target; }
public SVNPropertyValue getPropertyValue(String name) throws SVNException { if (getProperties() != null && getProperties().containsName(name)) { return getProperties().getSVNPropertyValue(name); } if (!isEmpty()) { SVNProperties props = loadProperties(); return props.getSVNPropertyValue(name); } return null; }
public SVNPropertyValue getPropertyValue(String name) throws SVNException { if (getProperties() != null && getProperties().containsName(name)) { return getProperties().getSVNPropertyValue(name); } if (!isEmpty()) { SVNProperties props = loadProperties(); return props.getSVNPropertyValue(name); } return null; }
protected ISVNEditor getCommitEditorInternal(Map locks, boolean keepLocks, SVNProperties revProps, ISVNWorkspaceMediator mediator) throws SVNException { try { openRepository(); } catch (SVNException svne) { closeRepository(); throw svne; } revProps = revProps == null ? new SVNProperties() : revProps; if (!revProps.containsName(SVNRevisionProperty.AUTHOR)) { revProps.put(SVNRevisionProperty.AUTHOR, getUserName()); } return new FSCommitEditor(getRepositoryPath(""), locks, keepLocks, null, myFSFS, this, revProps); }
public SVNPropertyValue getPropertyValue(String name) throws SVNException { if (getProperties() != null && getProperties().containsName(name)) { return getProperties().getSVNPropertyValue(name); } if (!isEmpty()) { SVNProperties props = loadProperties(); return props.getSVNPropertyValue(name); } return null; }
protected ISVNEditor getCommitEditorInternal(Map locks, boolean keepLocks, SVNProperties revProps, ISVNWorkspaceMediator mediator) throws SVNException { try { openRepository(); } catch (SVNException svne) { closeRepository(); throw svne; } revProps = revProps == null ? new SVNProperties() : revProps; if (!revProps.containsName(SVNRevisionProperty.AUTHOR)) { revProps.put(SVNRevisionProperty.AUTHOR, getUserName()); } return new FSCommitEditor(getRepositoryPath(""), locks, keepLocks, null, myFSFS, this, revProps); }
public static File maybeUpdateTargetEOLs(SVNAdminArea dir, File target, SVNProperties propDiff) throws SVNException { String eolStyle = null; if (propDiff != null && propDiff.containsName(SVNProperty.EOL_STYLE) && propDiff.getStringValue(SVNProperty.EOL_STYLE) != null) { eolStyle = propDiff.getStringValue(SVNProperty.EOL_STYLE); ISVNOptions options = dir.getWCAccess().getOptions(); byte[] eol = getEOL(eolStyle, options); File tmpFile = SVNAdminUtil.createTmpFile(dir); copyAndTranslate(target, tmpFile, null, eol, null, false, false, true); return tmpFile; } return target; }
protected ISVNEditor getCommitEditorInternal(Map locks, boolean keepLocks, SVNProperties revProps, ISVNWorkspaceMediator mediator) throws SVNException { try { openRepository(); } catch (SVNException svne) { closeRepository(); throw svne; } revProps = revProps == null ? new SVNProperties() : revProps; if (!revProps.containsName(SVNRevisionProperty.AUTHOR)) { revProps.put(SVNRevisionProperty.AUTHOR, getUserName()); } return new FSCommitEditor(getRepositoryPath(""), locks, keepLocks, null, myFSFS, this, revProps); }
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); } } } });
public void receive(SvnTarget target, SVNProperties props) throws SVNException { if (!props.containsName(propertyName)) { return; } final SVNPropertyData propertyData = new SVNPropertyData(propertyName, props.getSVNPropertyValue(propertyName), getSVNEnvironment().getOptions()); if (target.isURL()) { handleProperty(target.getURL(), propertyData); } else { handleProperty(target.getFile(), propertyData); } } });
public void receive(SvnTarget target, SVNProperties props) throws SVNException { if (!props.containsName(propertyName)) { return; } final SVNPropertyData propertyData = new SVNPropertyData(propertyName, props.getSVNPropertyValue(propertyName), getSVNEnvironment().getOptions()); if (target.isURL()) { handleProperty(target.getURL(), propertyData); } else { handleProperty(target.getFile(), propertyData); } } });
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); } } } });