public void deleteNodeProperty(String propertyName) throws SVNException { myCurrentRevisionBaton.getCommitter().changeNodeProperty(myCurrentNodeBaton.myPath, propertyName, null); }
public void deleteNodeProperty(String propertyName) throws SVNException { myCurrentRevisionBaton.getCommitter().changeNodeProperty(myCurrentNodeBaton.myPath, propertyName, null); }
public void deleteNodeProperty(String propertyName) throws SVNException { myCurrentRevisionBaton.getCommitter().changeNodeProperty(myCurrentNodeBaton.myPath, propertyName, null); }
public void removeNodeProperties() throws SVNException { FSTransactionRoot txnRoot = myCurrentRevisionBaton.myTxnRoot; FSRevisionNode node = txnRoot.getRevisionNode(myCurrentNodeBaton.myPath); SVNProperties props = node.getProperties(myFSFS); for (Iterator propNames = props.nameSet().iterator(); propNames.hasNext();) { String propName = (String) propNames.next(); myCurrentRevisionBaton.getCommitter().changeNodeProperty(myCurrentNodeBaton.myPath, propName, null); } }
public void removeNodeProperties() throws SVNException { FSTransactionRoot txnRoot = myCurrentRevisionBaton.myTxnRoot; FSRevisionNode node = txnRoot.getRevisionNode(myCurrentNodeBaton.myPath); SVNProperties props = node.getProperties(myFSFS); for (Iterator propNames = props.nameSet().iterator(); propNames.hasNext();) { String propName = (String) propNames.next(); myCurrentRevisionBaton.getCommitter().changeNodeProperty(myCurrentNodeBaton.myPath, propName, null); } }
public void removeNodeProperties() throws SVNException { FSTransactionRoot txnRoot = myCurrentRevisionBaton.myTxnRoot; FSRevisionNode node = txnRoot.getRevisionNode(myCurrentNodeBaton.myPath); SVNProperties props = node.getProperties(myFSFS); for (Iterator propNames = props.nameSet().iterator(); propNames.hasNext();) { String propName = (String) propNames.next(); myCurrentRevisionBaton.getCommitter().changeNodeProperty(myCurrentNodeBaton.myPath, propName, null); } }
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 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 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 void changeDirProperty(String name, SVNPropertyValue value) throws SVNException { DirBaton dirBaton = (DirBaton) myDirsStack.peek(); if (FSRepository.isValidRevision(dirBaton.getBaseRevision())) { FSRevisionNode existingNode = myTxnRoot.getRevisionNode(dirBaton.getPath()); long createdRev = existingNode.getCreatedRevision(); if (dirBaton.getBaseRevision() < createdRev) { SVNErrorManager.error(FSErrors.errorOutOfDate(dirBaton.getPath(), SVNNodeKind.DIR), SVNLogType.FSFS); } } myCommitter.changeNodeProperty(dirBaton.getPath(), name, value); }
public void changeDirProperty(String name, SVNPropertyValue value) throws SVNException { DirBaton dirBaton = (DirBaton) myDirsStack.peek(); if (FSRepository.isValidRevision(dirBaton.getBaseRevision())) { FSRevisionNode existingNode = myTxnRoot.getRevisionNode(dirBaton.getPath()); long createdRev = existingNode.getCreatedRevision(); if (dirBaton.getBaseRevision() < createdRev) { SVNErrorManager.error(FSErrors.errorOutOfDate(dirBaton.getPath(), SVNNodeKind.DIR), SVNLogType.FSFS); } } myCommitter.changeNodeProperty(dirBaton.getPath(), name, value); }
public void changeDirProperty(String name, SVNPropertyValue value) throws SVNException { DirBaton dirBaton = (DirBaton) myDirsStack.peek(); if (FSRepository.isValidRevision(dirBaton.getBaseRevision())) { FSRevisionNode existingNode = myTxnRoot.getRevisionNode(dirBaton.getPath()); long createdRev = existingNode.getCreatedRevision(); if (dirBaton.getBaseRevision() < createdRev) { SVNErrorManager.error(FSErrors.errorOutOfDate(dirBaton.getPath(), SVNNodeKind.DIR), SVNLogType.FSFS); } } myCommitter.changeNodeProperty(dirBaton.getPath(), name, value); }
public void removeProperty(DAVElement propName) throws DAVException { String reposPropName = getReposPropName(propName); if (reposPropName == null) { return; } try { FSFS fsfs = myResource.getFSFS(); if (myResource.isBaseLined()) { if (myResource.isWorking()) { FSTransactionInfo txn = myResource.getTxnInfo(); SVNProperties props = new SVNProperties(); props.put(reposPropName, (SVNPropertyValue) null); fsfs.changeTransactionProperties(txn.getTxnId(), props); } else { SVNRepository repos = myResource.getRepository(); repos.setRevisionPropertyValue(myResource.getRevision(), reposPropName, null); } } else { DAVResourceURI resourceURI = myResource.getResourceURI(); FSCommitter committer = getCommitter(); committer.changeNodeProperty(resourceURI.getPath(), reposPropName, null); } } catch (SVNException svne) { throw DAVException.convertError(svne.getErrorMessage(), HttpServletResponse.SC_INTERNAL_SERVER_ERROR, "could not remove a property", null); } myProperties = null; }
if (mimeType == null) { try { committer.changeNodeProperty(path, SVNProperty.MIME_TYPE, SVNPropertyValue.create(myRequest.getContentType())); } catch (SVNException svne) { throw DAVException.convertError(svne.getErrorMessage(), HttpServletResponse.SC_INTERNAL_SERVER_ERROR,
DAVResourceURI resourceURI = myResource.getResourceURI(); FSCommitter committer = getCommitter(); committer.changeNodeProperty(resourceURI.getPath(), reposPropName, value);