Package org.jetbrains.idea.svn.info

Examples of org.jetbrains.idea.svn.info.Info


    public FileRevisionHistory getFileHistory(ScanMode scanMode, final ProgressIndicator progressIndicator)
            throws SVNException {
        boolean retrievedWithErrors = false;
        final CollectedRevisions revisions = new CollectedRevisions();
        Info info = svn.getInfo(file);
        if (info == null) {
            throw new SVNException(SVNErrorMessage.create(SVNErrorCode.UNKNOWN, "Error retrieving SVN information for file"));
        }
        SVNRevision committedRevision = info.getRevision();
        if (committedRevision == null) {
            throw new SVNException(SVNErrorMessage.create(SVNErrorCode.UNKNOWN, "Error determining current file revision"));
        }
        boolean isDirectory = info.getKind() != NodeKind.FILE;
        final long currentRevision = committedRevision.getNumber();
        String repoRoot = info.getRepositoryRootURL().toString();
        final String relPath = info.getURL().toString().substring(repoRoot.length());

        SVNRepository repo = svn.getSvnKitManager().createRepository(repoRoot);
        boolean mergeInfoAvailable = repo.hasCapability(SVNCapability.MERGE_INFO);

        showProgressInfo(progressIndicator, "Getting latest repository revision");
View Full Code Here


            throw new SVNCancelException();
        }
    }

    public SVNProperties getFileProperties(Revision revision) throws SVNException {
        Info info = svn.getInfo(file);
        if (info == null) {
            throw new SVNException(SVNErrorMessage.create(SVNErrorCode.UNKNOWN, "Error retrieving SVN information for file"));
        }
        String repoRoot = info.getRepositoryRootURL().toString();
        SVNRepository repo = svn.getSvnKitManager().createRepository(repoRoot);
        SVNProperties properties = new SVNProperties();
        if (info.getKind() == NodeKind.FILE) {
            repo.getFile(revision.getRelPath(), revision.getRevisionNumber(), properties, null);
        } else {
            repo.getDir(revision.getRelPath(), revision.getRevisionNumber(), properties, (Collection) null);
        }
        return properties.getRegularProperties();
View Full Code Here

TOP

Related Classes of org.jetbrains.idea.svn.info.Info

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.