public void propertyCreate(String path, String name, String value, int depth, String[] changelists, boolean force) throws ClientException { propertyCreate(path, name, SVNPropertyValue.create(value), depth, changelists, force); }
public void propertyCreate(String path, String name, String value, int depth, String[] changelists, boolean force) throws ClientException { propertyCreate(path, name, SVNPropertyValue.create(value), depth, changelists, force); }
public boolean savePassphrase(String realm, char[] passphrase, SVNAuthentication auth, SVNProperties authParameters, boolean force) { if (passphrase == null) { return false; } char[] encrypted = SVNJNAUtil.encrypt(passphrase); if (encrypted == null) { return false; } authParameters.put("passphrase", SVNPropertyValue.create(encrypted, "UTF-8")); return true; }
public static FSTransactionInfo beginTransaction(long baseRevision, int flags, FSFS owner) throws SVNException { FSTransactionInfo txn = createTxn(baseRevision, owner); String commitTime = SVNDate.formatDate(new Date(System.currentTimeMillis())); owner.setTransactionProperty(txn.getTxnId(), SVNRevisionProperty.DATE, SVNPropertyValue.create(commitTime)); if ((flags & SVN_FS_TXN_CHECK_OUT_OF_DATENESS) != 0) { owner.setTransactionProperty(txn.getTxnId(), SVNProperty.TXN_CHECK_OUT_OF_DATENESS, SVNPropertyValue.create(Boolean.TRUE.toString())); } if ((flags & FSTransactionRoot.SVN_FS_TXN_CHECK_LOCKS) != 0) { owner.setTransactionProperty(txn.getTxnId(), SVNProperty.TXN_CHECK_LOCKS, SVNPropertyValue.create(Boolean.TRUE.toString())); } return txn; }
public boolean savePassword(String realm, char[] password, SVNAuthentication auth, SVNProperties authParameters) { if (password == null) { return false; } char[] encrypted = SVNJNAUtil.encrypt(password); if (encrypted == null) { return false; } authParameters.put("password", SVNPropertyValue.create(encrypted, "UTF-8")); return true; }
public static FSTransactionInfo beginTransaction(long baseRevision, int flags, FSFS owner) throws SVNException { FSTransactionInfo txn = createTxn(baseRevision, owner); String commitTime = SVNDate.formatDate(new Date(System.currentTimeMillis())); owner.setTransactionProperty(txn.getTxnId(), SVNRevisionProperty.DATE, SVNPropertyValue.create(commitTime)); if ((flags & SVN_FS_TXN_CHECK_OUT_OF_DATENESS) != 0) { owner.setTransactionProperty(txn.getTxnId(), SVNProperty.TXN_CHECK_OUT_OF_DATENESS, SVNPropertyValue.create(Boolean.TRUE.toString())); } if ((flags & FSTransactionRoot.SVN_FS_TXN_CHECK_LOCKS) != 0) { owner.setTransactionProperty(txn.getTxnId(), SVNProperty.TXN_CHECK_LOCKS, SVNPropertyValue.create(Boolean.TRUE.toString())); } return txn; }
public static void recordWCMergeInfo(File path, Map mergeInfo, SVNWCAccess wcAccess) throws SVNException { SVNPropertyValue value = null; if (mergeInfo != null) { value = SVNPropertyValue.create(SVNMergeInfoUtil.formatMergeInfoToString(mergeInfo, null)); } setProperty(wcAccess, path, SVNProperty.MERGE_INFO, value, true); }
public static void recordWCMergeInfo(File path, Map mergeInfo, SVNWCAccess wcAccess) throws SVNException { SVNPropertyValue value = null; if (mergeInfo != null) { value = SVNPropertyValue.create(SVNMergeInfoUtil.formatMergeInfoToString(mergeInfo, null)); } setProperty(wcAccess, path, SVNProperty.MERGE_INFO, value, true); }
public static void recordWCMergeInfo(File path, Map mergeInfo, SVNWCAccess wcAccess) throws SVNException { SVNPropertyValue value = null; if (mergeInfo != null) { value = SVNPropertyValue.create(SVNMergeInfoUtil.formatMergeInfoToString(mergeInfo, null)); } setProperty(wcAccess, path, SVNProperty.MERGE_INFO, value, true); }
public static FSTransactionInfo beginTransaction(long baseRevision, int flags, FSFS owner) throws SVNException { FSTransactionInfo txn = createTxn(baseRevision, owner); String commitTime = SVNDate.formatDate(new Date(System.currentTimeMillis())); owner.setTransactionProperty(txn.getTxnId(), SVNRevisionProperty.DATE, SVNPropertyValue.create(commitTime)); if ((flags & SVN_FS_TXN_CHECK_OUT_OF_DATENESS) != 0) { owner.setTransactionProperty(txn.getTxnId(), SVNProperty.TXN_CHECK_OUT_OF_DATENESS, SVNPropertyValue.create(Boolean.TRUE.toString())); } if ((flags & FSTransactionRoot.SVN_FS_TXN_CHECK_LOCKS) != 0) { owner.setTransactionProperty(txn.getTxnId(), SVNProperty.TXN_CHECK_LOCKS, SVNPropertyValue.create(Boolean.TRUE.toString())); } return txn; }
public void changeRevisionProperty(long revision, String propertyName, byte[] oldValue, byte[] newValue) throws ClientException { try { svnRepository.setRevisionPropertyValue(revision, propertyName, SVNPropertyValue.create(propertyName, newValue)); } catch (SVNException e) { throw ClientException.fromException(e); } }
private SVNPropertyValue maybePropValue(String propname, SVNSkel child) throws SVNException { if (child.getListSize() != 1) { return null; } byte[] data = child.getChild(0).getData(); return SVNPropertyValue.create(propname, data); }
public void setNodeProperty(String propertyName, SVNPropertyValue propertyValue) throws SVNException { if (SVNProperty.MERGE_INFO.equals(propertyName)) { Map mergeInfo = renumberMergeInfoRevisions(propertyValue); if (myParentDir != null) { mergeInfo = prefixMergeInfoPaths(mergeInfo); } String mergeInfoString = SVNMergeInfoUtil.formatMergeInfoToString(mergeInfo, null); propertyValue = SVNPropertyValue.create(mergeInfoString); } myCurrentRevisionBaton.getCommitter().changeNodeProperty(myCurrentNodeBaton.myPath, propertyName, propertyValue); }
public boolean savePassphrase(String realm, char[] passphrase, SVNAuthentication auth, SVNProperties authParameters, boolean force) throws SVNException { if (passphrase == null || auth == null) { return false; } ISVNHostOptions opts = myHostOptionsProvider.getHostOptions(auth == null ? null : auth.getURL()); if (force || opts.isStorePlainTextPassphrases(realm, auth)) { authParameters.put("passphrase", SVNPropertyValue.create(passphrase, "UTF-8")); return true; } return false; }
public void changeFileProperty(String path, String name, SVNPropertyValue value) throws SVNException { if (SVNProperty.isRegularProperty(name)) { if (SVNPropertiesManager.propNeedsTranslation(name)) { String normalizedVal = SVNAdminClient.normalizeString(SVNPropertyValue.getPropertyAsString(value)); if (normalizedVal != null) { value = SVNPropertyValue.create(normalizedVal); myNormalizedNodePropsCounter++; } } getWrappedEditor().changeFileProperty(path, name, value); } }
public void changeDirProperty(String name, SVNPropertyValue value) throws SVNException { if (SVNProperty.isRegularProperty(name)) { if (SVNPropertiesManager.propNeedsTranslation(name)) { String normalizedValue = SVNAdminClient.normalizeString(SVNPropertyValue.getPropertyAsString(value)); if (normalizedValue != null) { value = SVNPropertyValue.create(normalizedValue); myNormalizedNodePropsCounter++; } } getWrappedEditor().changeDirProperty(name, value); } }
public void changeDirProperty(String name, SVNPropertyValue value) throws SVNException { if (SVNProperty.isRegularProperty(name)) { if (SVNPropertiesManager.propNeedsTranslation(name)) { String normalizedValue = SVNAdminClient.normalizeString(SVNPropertyValue.getPropertyAsString(value)); if (normalizedValue != null) { value = SVNPropertyValue.create(normalizedValue); myNormalizedNodePropsCounter++; } } getWrappedEditor().changeDirProperty(name, value); } }
public void changeDirProperty(String name, SVNPropertyValue value) throws SVNException { if (SVNProperty.isRegularProperty(name)) { if (SVNPropertiesManager.propNeedsTranslation(name)) { String normalizedValue = SVNAdminClient.normalizeString(SVNPropertyValue.getPropertyAsString(value)); if (normalizedValue != null) { value = SVNPropertyValue.create(normalizedValue); myNormalizedNodePropsCounter++; } } getWrappedEditor().changeDirProperty(name, value); } }
public void changeFileProperty(String path, String name, SVNPropertyValue value) throws SVNException { if (SVNProperty.isRegularProperty(name)) { if (SVNPropertiesManager.propNeedsTranslation(name)) { String normalizedVal = SVNAdminClient.normalizeString(SVNPropertyValue.getPropertyAsString(value)); if (normalizedVal != null) { value = SVNPropertyValue.create(normalizedVal); myNormalizedNodePropsCounter++; } } getWrappedEditor().changeFileProperty(path, name, value); } }
public void changeFileProperty(String path, String name, SVNPropertyValue value) throws SVNException { if (SVNProperty.isRegularProperty(name)) { if (SVNPropertiesManager.propNeedsTranslation(name)) { String normalizedVal = SVNAdminClient.normalizeString(SVNPropertyValue.getPropertyAsString(value)); if (normalizedVal != null) { value = SVNPropertyValue.create(normalizedVal); myNormalizedNodePropsCounter++; } } getWrappedEditor().changeFileProperty(path, name, value); } }