Package org.tigris.subversion.svnclientadapter

Examples of org.tigris.subversion.svnclientadapter.SVNRevision


        if (!resource.exists())
            return null;
        try {
            ISVNLocalResource svnResourceFor = SVNWorkspaceRoot
                .getSVNResourceFor(resource);
            final SVNRevision revision = svnResourceFor.getRevision();
            if (revision != null)
                return revision.toString();
        } catch (SVNException e) {
            log.error("Error retrieving revision for " + resource, e);
        }
        return null;
    }
View Full Code Here


            // FIXME ndh: Use a CheckoutCommand instead. We should not depend on
            // org.tigris.subversion.subclipse.ui.
            final CheckoutAsProjectOperation checkoutAsProjectOperation = new CheckoutAsProjectOperation(
                null, remote, local);

            SVNRevision revision = getRevision(info.revision);
            if (revision != null)
                checkoutAsProjectOperation.setSvnRevision(revision);

            checkoutAsProjectOperation.run(monitor);
            result = local[0];
View Full Code Here

            + revisionString;
        // TODO Why doesn't this work? The caption of the dialog still reads
        // "Operation in progress".
        monitor.beginTask(taskName, 1);

        SVNRevision revision = getRevision(revisionString);
        if (revision == null)
            return;
        SVNWorkspaceRoot root;
        try {
            SVNTeamProvider provider = (SVNTeamProvider) RepositoryProvider
View Full Code Here

            addToVersionControl(resource);
            return;
        }
        String taskName = "Switching " + resource.getName();
        monitor.beginTask(taskName, 1);
        SVNRevision revision = getRevision(revisionString);
        if (revision == null)
            return;
        SVNWorkspaceRoot root;
        SVNTeamProvider provider = (SVNTeamProvider) RepositoryProvider
            .getProvider(resource.getProject());
View Full Code Here

TOP

Related Classes of org.tigris.subversion.svnclientadapter.SVNRevision

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.