Examples of FSFS


Examples of org.tmatesoft.svn.core.internal.io.fs.FSFS

        }
    }
   
    private Map crawlDirectoryForMergeInfo(FSRevisionRoot root, String path, FSRevisionNode node,
            Map result) throws SVNException {
        FSFS fsfs = root.getOwner();
        Map entries = node.getDirEntries(fsfs);
        for (Iterator entriesIter = entries.values().iterator(); entriesIter.hasNext();) {
            FSEntry entry = (FSEntry) entriesIter.next();
            String kidPath = SVNPathUtil.getAbsolutePath(SVNPathUtil.append(path, entry.getName()));
            FSRevisionNode kidNode = root.getRevisionNode(kidPath);
View Full Code Here

Examples of org.tmatesoft.svn.core.internal.io.fs.FSFS

            nearestAncestor = parentPath.getParent();
        } else {
            nearestAncestor = parentPath;
        }
       
        FSFS fsfs = revRoot.getOwner();
        while (true) {
            boolean hasMergeInfo = nearestAncestor.getRevNode().hasMergeInfo();
            if (hasMergeInfo) {
                break;
            }
View Full Code Here

Examples of org.tmatesoft.svn.core.internal.io.fs.FSFS

            }
        }
    }

    public static FSFS openRepository(File reposRootPath, boolean openFS) throws SVNException {
        FSFS fsfs = new FSFS(reposRootPath);
        if (openFS) {
            fsfs.open();
        } else {
            fsfs.openRoot();
            fsfs.getFSType();
        }
        return fsfs;
    }
View Full Code Here

Examples of org.tmatesoft.svn.core.internal.io.fs.FSFS

        }
        return fsfs;
    }

    public static FSFS openRepositoryForRecovery(File reposRootPath) throws SVNException {
        FSFS fsfs = new FSFS(reposRootPath);
        fsfs.openForRecovery();
        return fsfs;
    }
View Full Code Here

Examples of org.tmatesoft.svn.core.internal.io.fs.FSFS

    private String generateLabel(FSRoot root, String path) throws SVNException {
        String date = null;
        String txnName = null;
        long rev = 0;
        if (root != null) {
            FSFS fsfs = root.getOwner();
            SVNProperties props = null;
            if (root instanceof FSRevisionRoot) {
                FSRevisionRoot revisionRoot = (FSRevisionRoot) root;
                rev = revisionRoot.getRevision();
                props = fsfs.getRevisionProperties(rev);
            } else {
                FSTransactionRoot txnRoot = (FSTransactionRoot) root;
                txnName = txnRoot.getTxnID();
                props = fsfs.getTransactionProperties(txnName);
            }
            date = props.getStringValue(SVNRevisionProperty.DATE);
        }
       
        String dateString = null;
View Full Code Here

Examples of org.tmatesoft.svn.core.internal.io.fs.FSFS

        }
    }
   
    private Map crawlDirectoryForMergeInfo(FSRevisionRoot root, String path, FSRevisionNode node,
            Map result) throws SVNException {
        FSFS fsfs = root.getOwner();
        Map entries = node.getDirEntries(fsfs);
        for (Iterator entriesIter = entries.values().iterator(); entriesIter.hasNext();) {
            FSEntry entry = (FSEntry) entriesIter.next();
            String kidPath = SVNPathUtil.getAbsolutePath(SVNPathUtil.append(path, entry.getName()));
            FSRevisionNode kidNode = root.getRevisionNode(kidPath);
View Full Code Here

Examples of org.tmatesoft.svn.core.internal.io.fs.FSFS

            nearestAncestor = parentPath.getParent();
        } else {
            nearestAncestor = parentPath;
        }
       
        FSFS fsfs = revRoot.getOwner();
        while (true) {
            boolean hasMergeInfo = nearestAncestor.getRevNode().hasMergeInfo();
            if (hasMergeInfo) {
                break;
            }
View Full Code Here

Examples of org.tmatesoft.svn.core.internal.io.fs.FSFS

    private String generateLabel(FSRoot root, String path) throws SVNException {
        String date = null;
        String txnName = null;
        long rev = 0;
        if (root != null) {
            FSFS fsfs = root.getOwner();
            SVNProperties props = null;
            if (root instanceof FSRevisionRoot) {
                FSRevisionRoot revisionRoot = (FSRevisionRoot) root;
                rev = revisionRoot.getRevision();
                props = fsfs.getRevisionProperties(rev);
            } else {
                FSTransactionRoot txnRoot = (FSTransactionRoot) root;
                txnName = txnRoot.getTxnID();
                props = fsfs.getTransactionProperties(txnName);
            }
            date = props.getStringValue(SVNRevisionProperty.DATE);
        }
       
        String dateString = null;
View Full Code Here

Examples of org.tmatesoft.svn.core.internal.io.fs.FSFS

     * @return                  revision info
     * @throws  SVNException    no repository is found at
     *                          <code>repositoryRoot</code>
     */
    public SVNLogEntry doGetInfo(File repositoryRoot, SVNRevision revision) throws SVNException {
        FSFS fsfs = open(repositoryRoot, revision);
        try {
            long revNum = SVNAdminHelper.getRevisionNumber(revision, fsfs.getYoungestRevision(), fsfs);
            SVNProperties revProps = fsfs.getRevisionProperties(revNum);
            String date = revProps.getStringValue(SVNRevisionProperty.DATE);
            String author = revProps.getStringValue(SVNRevisionProperty.AUTHOR);
            String logMessage = revProps.getStringValue(SVNRevisionProperty.LOG);
            return new SVNLogEntry(null, revNum, author, SVNDate.parseDateString(date), logMessage);
        } finally {
View Full Code Here

Examples of org.tmatesoft.svn.core.internal.io.fs.FSFS

     *                           <code>repositoryRoot</code></li>
     *                           <li>if the specified transaction is not found</li>
     *                           </ul>
     */
    public SVNLogEntry doGetInfo(File repositoryRoot, String transactionName) throws SVNException {
        FSFS fsfs = open(repositoryRoot, transactionName);
        try {
            FSTransactionInfo txn = fsfs.openTxn(transactionName);
   
            SVNProperties txnProps = fsfs.getTransactionProperties(txn.getTxnId());
            String date = txnProps.getStringValue(SVNRevisionProperty.DATE);
            String author = txnProps.getStringValue(SVNRevisionProperty.AUTHOR);
            String logMessage = txnProps.getStringValue(SVNRevisionProperty.LOG);
            return new SVNLogEntry(null, -1, author, SVNDate.parseDateString(date), logMessage);
        } finally {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.