private PathInfo getNextPathInfo() throws IOException, SVNException { if (myReportIS == null) { myReportIS = new FSFile(myReportFile); } myCurrentPathInfo = myReportIS.readPathInfoFromReportFile(); return myCurrentPathInfo; }
private PathInfo getNextPathInfo() throws IOException { if (myReportIS == null) { myReportIS = new FSFile(myReportFile); } myCurrentPathInfo = myReportIS.readPathInfoFromReportFile(); return myCurrentPathInfo; }
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); }
protected FSFile getRevisionFSFile(long revision) throws SVNException { File revisionFile = getRevisionFile(revision); if (!revisionFile.exists()) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.FS_NO_SUCH_REVISION, "No such revision {0}", String.valueOf(revision)); SVNErrorManager.error(err, SVNLogType.FSFS); } return new FSFile(revisionFile); }
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(); } }
protected FSFile getRevisionFSFile(long revision) throws SVNException { File revisionFile = getRevisionFile(revision); if (!revisionFile.exists()) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.FS_NO_SUCH_REVISION, "No such revision {0}", new Long(revision)); SVNErrorManager.error(err, SVNLogType.FSFS); } return new FSFile(revisionFile); }
protected FSFile getPackOrRevisionFSFile(long revision) throws SVNException { File file = getAbsoluteRevisionPath(revision); if (!file.exists()) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.FS_NO_SUCH_REVISION, "No such revision {0}", new Long(revision)); SVNErrorManager.error(err, SVNLogType.FSFS); } return new FSFile(file); }
private static SVNProperties readProperties(byte[] propsData) throws SVNException { final FSFile fsFile = new FSFile(propsData); try { return fsFile.readProperties(false, true); } finally { fsFile.close(); } }
public SVNProperties getTransactionProperties(String txnID) throws SVNException { FSFile txnPropsFile = new FSFile(getTransactionPropertiesFile(txnID)); try { return txnPropsFile.readProperties(false, true); } finally { txnPropsFile.close(); } }
public Map getTransactionProperties(String txnID) throws SVNException { FSFile txnPropsFile = new FSFile(getTransactionPropertiesFile(txnID)); try { return txnPropsFile.readProperties(false); } finally { txnPropsFile.close(); } }
protected FSFile getTransactionRevisionNodeChildrenFile(FSID txnID) { File childrenFile = new File(getTransactionDir(txnID.getTxnID()), PATH_PREFIX_NODE + txnID.getNodeID() + "." + txnID.getCopyID() + TXN_PATH_EXT_CHILDREN); return new FSFile(childrenFile); }
public String getUUID() throws SVNException { if(myUUID == null) { // uuid FSFile formatFile = new FSFile(getUUIDFile()); try { myUUID = formatFile.readLine(38); } finally { formatFile.close(); } } return myUUID; }
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 String getUUID() throws SVNException { if(myUUID == null) { // uuid FSFile formatFile = new FSFile(getUUIDFile()); try { myUUID = formatFile.readLine(38); } finally { formatFile.close(); } } return myUUID; }
protected FSFile getTransactionRevisionNodeChildrenFile(FSID txnID) { File childrenFile = new File(getTransactionDir(txnID.getTxnID()), PATH_PREFIX_NODE + txnID.getNodeID() + "." + txnID.getCopyID() + TXN_PATH_EXT_CHILDREN); return new FSFile(childrenFile); }
public long getMinUnpackedRevProp() throws SVNException { FSFile file = new FSFile(getMinUnpackedRevPropPath()); try { return file.readLong(); } catch (NumberFormatException nfe) { return 0; } 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(); } }