private void createDBLogsLock(File dstPath) throws SVNException { try { SVNFileUtil.createFile(new File(dstPath, FSFS.DB_LOGS_LOCK_FILE), FSFS.PRE_12_COMPAT_UNNEEDED_FILE_CONTENTS, "US-ASCII"); } catch (SVNException svne) { SVNErrorMessage err = svne.getErrorMessage().wrap("Creating db logs lock file"); SVNErrorManager.error(err, SVNLogType.FSFS); } }
private void createDBLogsLock(File dstPath) throws SVNException { try { SVNFileUtil.createFile(new File(dstPath, FSFS.DB_LOGS_LOCK_FILE), FSFS.PRE_12_COMPAT_UNNEEDED_FILE_CONTENTS, "US-ASCII"); } catch (SVNException svne) { SVNErrorMessage err = svne.getErrorMessage().wrap("Creating db logs lock file"); SVNErrorManager.error(err, SVNLogType.FSFS); } }
private void createDBLock(File dstPath) throws SVNException { try { SVNFileUtil.createFile(new File(dstPath, FSFS.DB_LOCK_FILE), FSFS.PRE_12_COMPAT_UNNEEDED_FILE_CONTENTS, "US-ASCII"); } catch (SVNException svne) { SVNErrorMessage err = svne.getErrorMessage().wrap("Creating db lock file"); SVNErrorManager.error(err, SVNLogType.FSFS); } }
private void createDBLock(File dstPath) throws SVNException { try { SVNFileUtil.createFile(new File(dstPath, FSFS.DB_LOCK_FILE), FSFS.PRE_12_COMPAT_UNNEEDED_FILE_CONTENTS, "US-ASCII"); } catch (SVNException svne) { SVNErrorMessage err = svne.getErrorMessage().wrap("Creating db lock file"); SVNErrorManager.error(err, SVNLogType.FSFS); } }
private void createDBLock(File dstPath) throws SVNException { try { SVNFileUtil.createFile(new File(dstPath, FSFS.DB_LOCK_FILE), FSFS.PRE_12_COMPAT_UNNEEDED_FILE_CONTENTS, "US-ASCII"); } catch (SVNException svne) { SVNErrorMessage err = svne.getErrorMessage().wrap("Creating db lock file"); SVNErrorManager.error(err, SVNLogType.FSFS); } }
public File getDBLogsLockFile() throws SVNException { File lockFile = new File(getDBRoot(), LOCKS_DIR + "/" + DB_LOGS_LOCK_FILE); if (!lockFile.exists()) { try { SVNFileUtil.createFile(lockFile, PRE_12_COMPAT_UNNEEDED_FILE_CONTENTS, "US-ASCII"); } catch (SVNException svne) { SVNErrorMessage err = svne.getErrorMessage().wrap("Creating db logs lock file"); SVNErrorManager.error(err, SVNLogType.FSFS); } } return lockFile; }
private void createDBLogsLock(File dstPath) throws SVNException { try { SVNFileUtil.createFile(new File(dstPath, FSFS.DB_LOGS_LOCK_FILE), FSFS.PRE_12_COMPAT_UNNEEDED_FILE_CONTENTS, "US-ASCII"); } catch (SVNException svne) { SVNErrorMessage err = svne.getErrorMessage().wrap("Creating db logs lock file"); SVNErrorManager.error(err, SVNLogType.FSFS); } }
public File getDBLogsLockFile() throws SVNException { File lockFile = new File(getDBRoot(), LOCKS_DIR + "/" + DB_LOGS_LOCK_FILE); if (!lockFile.exists()) { try { SVNFileUtil.createFile(lockFile, PRE_12_COMPAT_UNNEEDED_FILE_CONTENTS, "US-ASCII"); } catch (SVNException svne) { SVNErrorMessage err = svne.getErrorMessage().wrap("Creating db logs lock file"); SVNErrorManager.error(err, SVNLogType.FSFS); } } return lockFile; }
public File getDBLogsLockFile() throws SVNException { File lockFile = new File(getDBRoot(), LOCKS_DIR + "/" + DB_LOGS_LOCK_FILE); if (!lockFile.exists()) { try { SVNFileUtil.createFile(lockFile, PRE_12_COMPAT_UNNEEDED_FILE_CONTENTS, "US-ASCII"); } catch (SVNException svne) { SVNErrorMessage err = svne.getErrorMessage().wrap("Creating db logs lock file"); SVNErrorManager.error(err, SVNLogType.FSFS); } } return lockFile; }
public SVNVersionedProperties getRevertProperties(String name) throws SVNException { Map revertPropsCache = getRevertPropertiesStorage(true); SVNVersionedProperties props = (SVNVersionedProperties)revertPropsCache.get(name); if (props != null) { return props; } SVNProperties revertProps = null; try { revertProps = readRevertProperties(name); } catch (SVNException svne) { SVNErrorMessage err = svne.getErrorMessage().wrap("Failed to load properties from disk"); SVNErrorManager.error(err, SVNLogType.WC); } props = new SVNProperties13(revertProps); revertPropsCache.put(name, props); return props; }
public SVNVersionedProperties getRevertProperties(String name) throws SVNException { Map revertPropsCache = getRevertPropertiesStorage(true); SVNVersionedProperties props = (SVNVersionedProperties)revertPropsCache.get(name); if (props != null) { return props; } SVNProperties revertProps = null; try { revertProps = readRevertProperties(name); } catch (SVNException svne) { SVNErrorMessage err = svne.getErrorMessage().wrap("Failed to load properties from disk"); SVNErrorManager.error(err, SVNLogType.WC); } props = new SVNProperties13(revertProps); revertPropsCache.put(name, props); return props; }
public SVNVersionedProperties getBaseProperties(String name) throws SVNException { Map basePropsCache = getBasePropertiesStorage(true); SVNVersionedProperties props = (SVNVersionedProperties)basePropsCache.get(name); if (props != null) { return props; } SVNProperties baseProps = null; try { baseProps = readBaseProperties(name); } catch (SVNException svne) { SVNErrorMessage err = svne.getErrorMessage().wrap("Failed to load properties from disk"); SVNErrorManager.error(err, SVNLogType.DEFAULT); } props = new SVNProperties13(baseProps); basePropsCache.put(name, props); return props; }
public SVNVersionedProperties getRevertProperties(String name) throws SVNException { Map revertPropsCache = getRevertPropertiesStorage(true); SVNVersionedProperties props = (SVNVersionedProperties)revertPropsCache.get(name); if (props != null) { return props; } SVNProperties revertProps = null; try { revertProps = readRevertProperties(name); } catch (SVNException svne) { SVNErrorMessage err = svne.getErrorMessage().wrap("Failed to load properties from disk"); SVNErrorManager.error(err, SVNLogType.DEFAULT); } props = new SVNProperties13(revertProps); revertPropsCache.put(name, props); return props; }
public SVNVersionedProperties getRevertProperties(String name) throws SVNException { Map revertPropsCache = getRevertPropertiesStorage(true); SVNVersionedProperties props = (SVNVersionedProperties)revertPropsCache.get(name); if (props != null) { return props; } SVNProperties revertProps = null; try { revertProps = readRevertProperties(name); } catch (SVNException svne) { SVNErrorMessage err = svne.getErrorMessage().wrap("Failed to load properties from disk"); SVNErrorManager.error(err, SVNLogType.WC); } props = new SVNProperties13(revertProps); revertPropsCache.put(name, props); return props; }
public SVNVersionedProperties getWCProperties(String name) throws SVNException { Map wcPropsCache = getWCPropertiesStorage(true); SVNVersionedProperties props = (SVNVersionedProperties)wcPropsCache.get(name); if (props != null) { return props; } SVNProperties properties = null; try { properties = readWCProperties(name); } catch (SVNException svne) { SVNErrorMessage err = svne.getErrorMessage().wrap("Failed to load properties from disk"); SVNErrorManager.error(err, SVNLogType.WC); } props = new SVNProperties13(properties); wcPropsCache.put(name, props); return props; }
public SVNVersionedProperties getRevertProperties(String name) throws SVNException { Map revertPropsCache = getRevertPropertiesStorage(true); SVNVersionedProperties props = (SVNVersionedProperties)revertPropsCache.get(name); if (props != null) { return props; } SVNProperties revertProps = null; try { revertProps = readRevertProperties(name); } catch (SVNException svne) { SVNErrorMessage err = svne.getErrorMessage().wrap("Failed to load properties from disk"); SVNErrorManager.error(err, SVNLogType.DEFAULT); } props = new SVNProperties13(revertProps); revertPropsCache.put(name, props); return props; }
private void openRepository() throws SVNException { try { openRepositoryRoot(); } catch (SVNException svne) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_LOCAL_REPOS_OPEN_FAILED, "Unable to open repository ''{0}''", getLocation().toDecodedString()); err.setChildErrorMessage(svne.getErrorMessage()); SVNErrorManager.error(err.wrap("Unable to open an ra_local session to URL"), SVNLogType.FSFS); } }
private void openRepository() throws SVNException { try { openRepositoryRoot(); } catch (SVNException svne) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_LOCAL_REPOS_OPEN_FAILED, "Unable to open repository ''{0}''", getLocation().toDecodedString()); err.setChildErrorMessage(svne.getErrorMessage()); SVNErrorManager.error(err.wrap("Unable to open an ra_local session to URL"), SVNLogType.FSFS); } }
private void openRepository() throws SVNException { try { openRepositoryRoot(); } catch (SVNException svne) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_LOCAL_REPOS_OPEN_FAILED, "Unable to open repository ''{0}''", getLocation().toDecodedString()); err.setChildErrorMessage(svne.getErrorMessage()); SVNErrorManager.error(err.wrap("Unable to open an ra_local session to URL")); } }
private void openRepository() throws SVNException { try { openRepositoryRoot(); } catch (SVNException svne) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_LOCAL_REPOS_OPEN_FAILED, "Unable to connect to a repository at URL ''{0}''", getLocation().toString()); err.setChildErrorMessage(svne.getErrorMessage()); SVNErrorManager.error(err.wrap("Unable to open repository ''{0}''", new Object[]{getLocation()}), SVNLogType.FSFS); } }