English 中文(简体)
Subclipse - Checkout SVN repository into a non-root folder
原标题:

Is there any way to make subclipse checkout a repository into a non-root folder of a project. In particular, I want to checkout into folder src/wavedev rather than just to the project root.

最佳回答

Not sure if this is a solution to your situation, but you could use SVN:Externals

The SVN:Externals property lets you checkout an external repository within your current repository. Changing code in this external repository will update in your current project and changing code in your current project from the external repository will commit to that repository.

To set the external property in subclipse:

right-click your root foolder
select team > set property
From the property dropdown select "svn:externals"

set the value to:

src/wavedev  http://svn.yourrepository/wavedev

As far as I know subclipse uses the same .svn folders as the svn commandline tool or for instance tortoisesvn. So if you can t get it to work with subclipse you could try this workaround

问题回答

If your top level project isn t under version control, then you probably can t do the svn:externals trick.

However, you could work your way around it:

Check out the code you want into a new project (let s call this Project B).

In the project your working in (let s call it Project A), create a new folder (src/wavedev), but in the New Folder Dialogue, use the Advanced button to link it to an external folder in the filesystem. You can point it to the location of Project B.

It might make more sense, though, to add Project B to the build path of Project A...?

If your top level project isn t under version control, 1. You could checkout the src tree in some other directory and make a soft link from your source to the checked out folder. 2. Alternatively, You can checkout the src tree in some other location and configure eclipse to look for source in the newly checked out folder.

The answers above are perfectly valid work arounds, but these are just few more to the list.!





相关问题
Best practices for Subversion and Visual Studio projects

I ve recently started working on various C# projects in Visual Studio as part of a plan for a large scale system that will be used to replace our current system that s built from a cobbling-together ...

Changing username in SVN+SSH URI on the fly in working copy

I am using SVN+SSH to check out a working copy of repository from an SVN server on which all developers are members of a developer group and have full read/write permissions on the repository ...

ASP.NET MVC: How should it work with subversion?

So, I have an asp.net mvc app that is being worked on by multiple developers in differing capacities. This is our first time working on a mvc app and my first time working with .NET. Our app does not ...

How to search for file in subversion server?

Is there a way to search for a file in a subversion repository? Something similar to Unix find command, with which I can find the location of a file in a repository. I know there is svn list, but ...

热门标签