Package org.tmatesoft.svn.core.internal.io.fs

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);
        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);
    }
View Full Code Here


     * @return                  a revision number
     * @throws SVNException     no repository is found at
     *                          <code>repositoryRoot</code>
     */
    public long doGetYoungestRevision(File repositoryRoot) throws SVNException {
        FSFS fsfs = SVNAdminHelper.openRepository(repositoryRoot, true);
        return fsfs.getYoungestRevision();
    }
View Full Code Here

     * @return                 an uuid
     * @throws SVNException    no repository is found at
     *                         <code>repositoryRoot</code>
     */
    public String doGetUUID(File repositoryRoot) throws SVNException {
        FSFS fsfs = SVNAdminHelper.openRepository(repositoryRoot, true);
        return fsfs.getUUID();
    }
View Full Code Here

     * @return                a revision author
     * @throws SVNException   no repository is found at
     *                        <code>repositoryRoot</code>
     */
    public String doGetAuthor(File repositoryRoot, SVNRevision revision) throws SVNException {
        FSFS fsfs = open(repositoryRoot, revision);
        long revNum = SVNAdminHelper.getRevisionNumber(revision, fsfs.getYoungestRevision(), fsfs);
        SVNProperties revProps = fsfs.getRevisionProperties(revNum);
        return revProps.getStringValue(SVNRevisionProperty.AUTHOR);
    }
View Full Code Here

     *                          <code>repositoryRoot</code></li>
     *                          <li>if the specified transaction is not found</li>
     *                          </ul>
     */
    public String doGetAuthor(File repositoryRoot, String transactionName) throws SVNException {
        FSFS fsfs = open(repositoryRoot, transactionName);
        FSTransactionInfo txn = fsfs.openTxn(transactionName);
        SVNProperties txnProps = fsfs.getTransactionProperties(txn.getTxnId());
        return txnProps.getStringValue(SVNRevisionProperty.AUTHOR);
    }
View Full Code Here

            SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.CL_INSUFFICIENT_ARGS,
                    "Missing repository path argument");
            SVNErrorManager.error(err, SVNLogType.FSFS);
        }

        FSFS fsfs = open(repositoryRoot, revision);
        long revNum = SVNAdminHelper.getRevisionNumber(revision, fsfs.getYoungestRevision(), fsfs);
        FSRoot root = fsfs.createRevisionRoot(revNum);
        catFile(root, path, out);
    }
View Full Code Here

        if (path == null) {
            SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.CL_INSUFFICIENT_ARGS, "Missing repository path argument");
            SVNErrorManager.error(err, SVNLogType.FSFS);
        }
       
        FSFS fsfs = open(repositoryRoot, transactionName);
        FSTransactionInfo txn = fsfs.openTxn(transactionName);
        FSRoot root = fsfs.createTransactionRoot(txn);
        catFile(root, path, out);
    }
View Full Code Here

     * @return                  a datestamp
     * @throws SVNException     no repository is found at
     *                          <code>repositoryRoot</code>
     */
    public Date doGetDate(File repositoryRoot, SVNRevision revision) throws SVNException {
        FSFS fsfs = open(repositoryRoot, revision);
        long revNum = SVNAdminHelper.getRevisionNumber(revision, fsfs.getYoungestRevision(), fsfs);
        SVNProperties revProps = fsfs.getRevisionProperties(revNum);
        String date = revProps.getStringValue(SVNRevisionProperty.DATE);
        if (date != null) {
            return SVNDate.parseDate(date);
        }
        return null;
View Full Code Here

     *                          <li>if the specified transaction is not found
     *                          </li>
     *                          </ul>
     */
    public Date doGetDate(File repositoryRoot, String transactionName) throws SVNException {
        FSFS fsfs = open(repositoryRoot, transactionName);
        FSTransactionInfo txn = fsfs.openTxn(transactionName);
        SVNProperties txnProps = fsfs.getTransactionProperties(txn.getTxnId());
        String date = txnProps.getStringValue(SVNRevisionProperty.DATE);
        if (date != null) {
            return SVNDate.parseDate(date);
        }
        return null;
View Full Code Here

     * @param  repositoryRoot  root of the repository to pack
     * @throws SVNException
     * @since  1.3, SVN 1.6
     */
    public void doPack(File repositoryRoot) throws SVNException {
        FSFS fsfs = SVNAdminHelper.openRepository(repositoryRoot, true);
        FSPacker packer = new FSPacker(myEventHandler);
        packer.pack(fsfs);
    }
View Full Code Here

TOP

Related Classes of org.tmatesoft.svn.core.internal.io.fs.FSFS

Copyright © 2018 www.massapicom. 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.