private SVNProperties getNodeOriginsFromFile(String nodeID) throws SVNException { File nodeOriginFile = getNodeOriginFile(nodeID); if (!nodeOriginFile.exists()) { return null; } FSFile reader = new FSFile(nodeOriginFile); return reader.readProperties(false, true); }
private SVNProperties getNodeOriginsFromFile(String nodeID) throws SVNException { File nodeOriginFile = getNodeOriginFile(nodeID); if (!nodeOriginFile.exists()) { return null; } FSFile reader = new FSFile(nodeOriginFile); return reader.readProperties(false, true); }
private SVNProperties getNodeOriginsFromFile(String nodeID) throws SVNException { File nodeOriginFile = getNodeOriginFile(nodeID); if (!nodeOriginFile.exists()) { return null; } FSFile reader = new FSFile(nodeOriginFile); return reader.readProperties(false, true); }
private static SVNProperties readProperties(byte[] propsData) throws SVNException { final FSFile fsFile = new FSFile(propsData); try { return fsFile.readProperties(false, true); } finally { fsFile.close(); } }
private SVNProperties parseProperties(byte[] data, int offset, int length) throws SVNException { final FSFile fsFile = new FSFile(data, offset, length); try { return fsFile.readProperties(false, true); } finally { fsFile.close(); } }
public Map getRevisionProperties(long revision) throws SVNException { FSFile file = new FSFile(getRevisionPropertiesFile(revision)); try { return file.readProperties(false); } finally { file.close(); } }
public Map getTransactionProperties(String txnID) throws SVNException { FSFile txnPropsFile = new FSFile(getTransactionPropertiesFile(txnID)); try { return txnPropsFile.readProperties(false); } finally { txnPropsFile.close(); } }
public SVNProperties getTransactionProperties(String txnID) throws SVNException { FSFile txnPropsFile = new FSFile(getTransactionPropertiesFile(txnID)); try { return txnPropsFile.readProperties(false, true); } finally { txnPropsFile.close(); } }
public SVNProperties getTransactionProperties(String txnID) throws SVNException { FSFile txnPropsFile = new FSFile(getTransactionPropertiesFile(txnID)); try { return txnPropsFile.readProperties(false, true); } finally { txnPropsFile.close(); } }
public SVNProperties getTransactionProperties(String txnID) throws SVNException { FSFile txnPropsFile = new FSFile(getTransactionPropertiesFile(txnID)); try { return txnPropsFile.readProperties(false, true); } finally { txnPropsFile.close(); } }
public SVNProperties getRevisionProperties(long revision) throws SVNException { ensureRevisionsExists(revision); FSFile file = new FSFile(getRevisionPropertiesFile(revision, false)); try { return file.readProperties(false, true); } finally { file.close(); } }
public SVNProperties getRevisionProperties(long revision) throws SVNException { ensureRevisionsExists(revision); FSFile file = new FSFile(getRevisionPropertiesFile(revision, false)); try { return file.readProperties(false, true); } finally { file.close(); } }
try { wcpropsFile = new FSFile(propertiesFile); SVNProperties wcProps = wcpropsFile.readProperties(false, true); SVNVersionedProperties entryWCProps = new SVNProperties13(wcProps); wcPropsCache.put(getThisDirName(), entryWCProps); wcProps = wcpropsFile.readProperties(false, true); entryWCProps = new SVNProperties13(wcProps); wcPropsCache.put(name, entryWCProps);
try { wcpropsFile = new FSFile(propertiesFile); SVNProperties wcProps = wcpropsFile.readProperties(false, true); SVNVersionedProperties entryWCProps = new SVNProperties13(wcProps); wcPropsCache.put(getThisDirName(), entryWCProps); wcProps = wcpropsFile.readProperties(false, true); entryWCProps = new SVNProperties13(wcProps); wcPropsCache.put(name, entryWCProps);
rawEntries = revisionFile.readProperties(false, true); checksum = revisionFile.digest(); } else if ("DELTA".equals(repHeader)) {
public Map getDirContents(FSRevisionNode revNode) throws SVNException { FSRepresentation txtRep = revNode.getTextRepresentation(); if (txtRep != null && txtRep.isTxn()) { FSFile childrenFile = getTransactionRevisionNodeChildrenFile(revNode.getId()); Map entries = null; try { SVNProperties rawEntries = childrenFile.readProperties(false, false); rawEntries.putAll(childrenFile.readProperties(true, false)); rawEntries.removeNullValues(); entries = parsePlainRepresentation(rawEntries, true); } finally { childrenFile.close(); } return entries; } else if (txtRep != null) { return parsePlainRepresentation(parseProperties(txtRep), false); } return new SVNHashMap();// returns an empty map, must not be null!! }
private SVNProperties readRevisionProperties(long revision) throws SVNException { ensureRevisionsExists(revision); SVNProperties properties = null; if (!isPackedRevisionProperties(revision)) { FSFile file = new FSFile(getRevisionPropertiesFile(revision, false)); try { properties = file.readProperties(false, true); } catch (SVNException e) { // TODO file may not exist, we need to read from pack properties = null; throw e; } finally { file.close(); } } if (myDBFormat >= MIN_PACKED_REVPROP_FORMAT && properties == null) { // read packed revision props return readPackedRevisionProperties(revision); // TODO wrap exception, do retry } return properties == null ? new SVNProperties() : properties; }
try { propsFile = getTransactionRevisionNodePropertiesFile(revNode.getId()); return propsFile.readProperties(false); } finally { if(propsFile != null){ Map props = revisionFile.readProperties(false); String checksum = revisionFile.digest();
try { propsFile = getTransactionRevisionNodePropertiesFile(revNode.getId()); return propsFile.readProperties(false, true); } finally { if(propsFile != null){ SVNProperties props = revisionFile.readProperties(false, true); String checksum = revisionFile.digest();
public SVNProperties getProperties(FSRevisionNode revNode) throws SVNException { if (revNode.getPropsRepresentation() != null && revNode.getPropsRepresentation().isTxn()) { FSFile propsFile = null; try { propsFile = getTransactionRevisionNodePropertiesFile(revNode.getId()); return propsFile.readProperties(false, true); } finally { if(propsFile != null){ propsFile.close(); } } } else if (revNode.getPropsRepresentation() != null) { FSRepresentation propsRep = revNode.getPropsRepresentation(); SVNProperties properties = parseProperties(propsRep); return properties == null ? new SVNProperties() : properties; } return new SVNProperties();// no properties? return an empty SVNProperties }