Examples of ISVNRepositoryLocation


Examples of org.tigris.subversion.subclipse.core.ISVNRepositoryLocation

    }

    String svnUrl = url.trim().substring(SCM_SVN_PREFIX.length());

    try {
      ISVNRepositoryLocation location = SubclipseUtils.getRepositoryLocation(svnUrl);
      if(location == null) {
        location = SubclipseUtils.createRepositoryLocation(svnUrl);
      }

      ISVNClientAdapter client = location.getSVNClient();

      // TODO follow svn:externals property
      // ISVNProperty[] properties = client.getProperties(folderUrl);

      SVNUrl folderUrl = new SVNUrl(svnUrl);
View Full Code Here

Examples of org.tigris.subversion.subclipse.core.ISVNRepositoryLocation

    String folderUrl = info.getFolderUrl();

    String repositoryUrl = info.getRepositoryUrl();

    String svnUrl = repositoryUrl.substring(SCM_SVN_PREFIX.length());
    ISVNRepositoryLocation repository = SubclipseUtils.getRepositoryLocation(svnUrl);
    if(repository==null) {
      repository = SubclipseUtils.createRepositoryLocation(svnUrl, info.getUsername(), info.getPassword());
    }

    String folderPath = folderUrl.substring(SCM_SVN_PREFIX.length() + repository.getUrl().toString().length());
    return repository.getRemoteFolder(folderPath);
  }
View Full Code Here

Examples of org.tigris.subversion.subclipse.core.ISVNRepositoryLocation

    return null;
  }
 
  public String selectRevision(Shell shell, ScmUrl scmUrl, String scmRevision) {
    String svnUrl = getSvnUrl(scmUrl.getUrl());
    ISVNRepositoryLocation location = SubclipseUtils.getRepositoryLocation(svnUrl);
    if(location==null) {
      // TODO ask if we should add new repository
      return null;
    }
   
    String path = svnUrl.substring(location.getUrl().toString().length());
    ISVNRemoteFolder remoteFolder = location.getRemoteFolder(path);
   
    HistoryDialog dialog = new HistoryDialog(shell, remoteFolder);
    // dialog.getShell().setSize(300, 200);

    if(dialog.open() != Window.CANCEL) {
View Full Code Here

Examples of org.tigris.subversion.subclipse.core.ISVNRepositoryLocation

  public static ISVNRepositoryLocation getRepositoryLocation(String url) {
    SVNProviderPlugin provider = SVNProviderPlugin.getPlugin();
    SVNRepositories repositories = provider.getRepositories();

    ISVNRepositoryLocation location = null;
   
    ISVNRepositoryLocation[] locations = repositories.getKnownRepositories(new NullProgressMonitor());
    for(int i = 0; i < locations.length; i++ ) {
      String currentUrl = locations[i].getUrl().toString();
      if(url.startsWith(currentUrl)) {
        if(location==null || currentUrl.length()>location.getUrl().toString().length())
        location = locations[i];
      }
    }

    return location;
View Full Code Here

Examples of org.tigris.subversion.subclipse.core.ISVNRepositoryLocation

    public static void diff(SVNUrl fromUrl, SVNRevision fromRevision,
            SVNUrl toUrl, SVNRevision toRevision, File fileDiff,
            boolean localNewVersionFlag,ISVNResource localResource) throws DiffGenerateException {
        try {
            ISVNClientAdapter client = null;
            ISVNRepositoryLocation repository = SVNProviderPlugin.getPlugin().getRepository(fromUrl.toString());
            if (repository != null){
                client = repository.getSVNClient();
            }
           
            if( null == client ){
                return ;
            }
View Full Code Here

Examples of org.tigris.subversion.subclipse.core.ISVNRepositoryLocation

    public static ISVNLogMessage[] getPriorSVNRevision( SVNUrl url, SVNRevision revisionStart,
            SVNRevision revisionEnd ) throws ReviewboardException{
        ISVNLogMessage[] svnLogMessages = null;
        ISVNClientAdapter client = null;
        try {
            ISVNRepositoryLocation repository = SVNProviderPlugin.getPlugin().getRepository(url.toString());
            if (repository != null){
                client = repository.getSVNClient();
            }
            if( null == client ){
                return svnLogMessages;
            }
            svnLogMessages = client.getLogMessages(url, revisionStart, revisionEnd);
View Full Code Here

Examples of org.tigris.subversion.subclipse.core.ISVNRepositoryLocation

            SVNUrl toUrl, SVNRevision toRevision,
            boolean localNewVersionFlag,ISVNResource localResource) throws DiffGenerateException {
        SVNDiffSummary[] sVNDiffSummarys = null;
        try {
            ISVNClientAdapter client = null;
            ISVNRepositoryLocation repository = SVNProviderPlugin.getPlugin().getRepository(fromUrl.toString());
            if (repository != null){
                client = repository.getSVNClient();
            }
            if( null == client ){
                return sVNDiffSummarys;
            }
            SVNRevision pegRevision = null;
View Full Code Here

Examples of org.tigris.subversion.subclipse.core.ISVNRepositoryLocation

            .getSVNResourceFor(resource);
        try {
            ISVNRemoteResource baseResource = svnResource.getBaseResource();
            if (baseResource == null)
                return null;
            ISVNRepositoryLocation repository = baseResource.getRepository();
            if (repository == null)
                return null;
            String result = repository.getRepositoryRoot().toString();
            return result;
        } catch (SVNException e) {
            log.debug("Undocumented exception", e);
        }
View Full Code Here

Examples of org.tigris.subversion.subclipse.core.ISVNRepositoryLocation

    }

    @Override
    public IProject checkoutProject(String newProjectName, FileList fileList,
        SubMonitor monitor) {
        ISVNRepositoryLocation loc;
        IProject result = null;

        try {
            VCSResourceInfo info = fileList.getProjectInfo();
            loc = SVNRepositoryLocation
View Full Code Here

Examples of org.tigris.subversion.subclipse.core.ISVNRepositoryLocation

                // counter-part in hasLocalCache().
            }
        } else {
            monitor.beginTask("Connecting  " + project.getName(), 1);
            try {
                ISVNRepositoryLocation location = SVNRepositoryLocation
                    .fromString(repositoryRoot);
                SVNWorkspaceRoot.shareProject(location, project, directory,
                    "not used", false, SubMonitor.convert(monitor));
                project.refreshLocal(IResource.DEPTH_INFINITE, null);
                monitor.worked(1);
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.