public SVNLock getLock(String path) throws SVNException { try { openConnection(); path = getFullPath(path); path = SVNEncodingUtil.uriEncode(path); return myConnection.doGetLock(path, this); } finally { closeConnection(); } }
public SVNLock getLock(String path) throws SVNException { try { openConnection(); path = doGetFullPath(path); path = SVNEncodingUtil.uriEncode(path); DAVConnection connection = getConnection(); return connection.doGetLock(path, this); } finally { closeConnection(); } }
public SVNLock getLock(String path) throws SVNException { try { openConnection(); path = doGetFullPath(path); path = SVNEncodingUtil.uriEncode(path); DAVConnection connection = getConnection(); return connection.doGetLock(path, this); } finally { closeConnection(); } }
public SVNLock getLock(String path) throws SVNException { try { openConnection(); path = doGetFullPath(path); path = SVNEncodingUtil.uriEncode(path); DAVConnection connection = getConnection(); return connection.doGetLock(path, this); } finally { closeConnection(); } }
fullPath = SVNEncodingUtil.uriEncode(fullPath); DAVConnection connection = getConnection(); SVNLock lock = connection.doGetLock(fullPath, myOwner);
fullPath = SVNEncodingUtil.uriEncode(fullPath); DAVConnection connection = getConnection(); SVNLock lock = connection.doGetLock(fullPath, myOwner);
fullPath = SVNEncodingUtil.uriEncode(fullPath); DAVConnection connection = getConnection(); SVNLock lock = connection.doGetLock(fullPath, myOwner);
public void doUnlock(String path, DAVRepository repos, String id, boolean force) throws SVNException { if (id == null) { SVNLock lock = doGetLock(path, repos); if (lock != null) { id = lock.getID(); } if (id == null) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_NOT_LOCKED, "''{0}'' is not locked in the repository", path); SVNErrorManager.error(err); } } HTTPHeader header = new HTTPHeader(); header.setHeaderValue(HTTPHeader.LOCK_TOKEN_HEADER, "<" + id + ">"); if (force) { header.setHeaderValue(HTTPHeader.SVN_OPTIONS_HEADER, "lock-break"); } SVNErrorMessage context = SVNErrorMessage.create(SVNErrorCode.RA_DAV_REQUEST_FAILED, "Unlock request failed"); myHttpConnection.request("UNLOCK", path, header, (StringBuffer) null, 204, 0, null, null, context); }
public void doUnlock(String path, DAVRepository repos, String id, boolean force) throws SVNException { if (id == null) { SVNLock lock = doGetLock(path, repos); if (lock != null) { id = lock.getID(); } if (id == null) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_NOT_LOCKED, "''{0}'' is not locked in the repository", path); SVNErrorManager.error(err, SVNLogType.NETWORK); } } HTTPHeader header = new HTTPHeader(); header.setHeaderValue(HTTPHeader.LOCK_TOKEN_HEADER, "<" + id + ">"); if (force) { header.setHeaderValue(HTTPHeader.SVN_OPTIONS_HEADER, "lock-break"); } SVNErrorMessage context = SVNErrorMessage.create(SVNErrorCode.RA_DAV_REQUEST_FAILED, "Unlock request failed"); IHTTPConnection httpConnection = getConnection(); httpConnection.request("UNLOCK", path, header, (StringBuffer) null, 204, 0, null, null, context); }
public void doUnlock(String path, DAVRepository repos, String id, boolean force) throws SVNException { if (id == null) { SVNLock lock = doGetLock(path, repos); if (lock != null) { id = lock.getID(); } if (id == null) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_NOT_LOCKED, "''{0}'' is not locked in the repository", path); SVNErrorManager.error(err, SVNLogType.NETWORK); } } HTTPHeader header = new HTTPHeader(); header.setHeaderValue(HTTPHeader.LOCK_TOKEN_HEADER, "<" + id + ">"); if (force) { header.setHeaderValue(HTTPHeader.SVN_OPTIONS_HEADER, "lock-break"); } SVNErrorMessage context = SVNErrorMessage.create(SVNErrorCode.RA_DAV_REQUEST_FAILED, "Unlock request failed"); IHTTPConnection httpConnection = getConnection(); httpConnection.request("UNLOCK", path, header, (StringBuffer) null, 204, 0, null, null, context); }
public void doUnlock(String path, DAVRepository repos, String id, boolean force) throws SVNException { beforeCall(); if (id == null) { SVNLock lock = doGetLock(path, repos); if (lock != null) { id = lock.getID();