path = getRepositoryPath(path); String reposPath = SVNPathUtil.canonicalizeAbsPath(path); String digestPath = FSRepositoryUtil.getDigestFromRepositoryPath(reposPath); final ArrayList locks = new ArrayList(0); ISVNLockHandler handler = new ISVNLockHandler(){ public void handleLock(String path, SVNLock lock, SVNErrorMessage error) throws SVNException { locks.add(lock); }  public void handleUnlock(String path, SVNLock lock, SVNErrorMessage error) throws SVNException{ } }; FSReader.walkDigestFiles(FSRepositoryUtil.getDigestFileFromDigest(digestPath, myReposRootDir), handler, false, myReposRootDir); if(locks == null || locks.isEmpty()){ return null;
try{ openRepository();  path = SVNPathUtil.canonicalizeAbsPath(getRepositoryPath(path));  File digestFile = FSRepositoryUtil.getDigestFileFromRepositoryPath(path, myReposRootDir); final ArrayList locks = new ArrayList(); ISVNLockHandler handler = new ISVNLockHandler(){ public void handleLock(String path, SVNLock lock, SVNErrorMessage error) throws SVNException { locks.add(lock); }  public void handleUnlock(String path, SVNLock lock, SVNErrorMessage error) throws SVNException{ } }; FSReader.walkDigestFiles(digestFile, handler, false, myReposRootDir); return (SVNLock[])locks.toArray(new SVNLock[locks.size()]); }finally{ closeRepository();
    public SVNLock[] getLocks(String path) throws SVNException {        path = getRepositoryPath(path);        String reposPath = SVNPathUtil.canonicalizeAbsPath(path);        String digestPath = FSRepositoryUtil.getDigestFromRepositoryPath(reposPath);        final ArrayList locks = new ArrayList(0);        ISVNLockHandler handler = new ISVNLockHandler(){            public void handleLock(String path, SVNLock lock, SVNErrorMessage error) throws SVNException {                locks.add(lock);            }                        public void handleUnlock(String path, SVNLock lock, SVNErrorMessage error) throws SVNException{            }        };        FSReader.walkDigestFiles(FSRepositoryUtil.getDigestFileFromDigest(digestPath, myReposRootDir), handler, false, myReposRootDir);        if(locks == null || locks.isEmpty()){            return null;        }        SVNLock [] retLocks = new SVNLock[locks.size()];        for(int count = 0; count < locks.size(); count++){            retLocks[count] = (SVNLock)locks.get(count);        }        return retLocks;    }