• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

is just Subclipse enough? or need install a svn server also?

 
Ranch Hand
Posts: 327
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have installed subclipse1.8.7 in eclipse, then when I want to add a new SVN repository, I type

but there is error


svn: Unable to connect to a repository at URL 'file:///D:/subversionRepository/StockWatcher'
svn: Unable to open an ra_local session to URL
svn: Unable to open repository 'file:///D:/subversionRepository/StockWatcher'



is it need to install svn server first?
sorry for the foolish question as I am new to svn.
I just use for local machine.
 
peter tong
Ranch Hand
Posts: 327
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I now install VisualSVN server, but I still found some unknwon.
if I just create the repository in visualSVN server and then in eclipse, using sclipse, select team > share, then in synchorine view, put in svn and commit, it is ok, but no folder like trunk, branches, tag.
if create project in svn server first, then the svn server will help me create the folder trunk, branches, tag, but then I don't know how to put my project in eclipse to visualsvn trunk folder.
 
Saloon Keeper
Posts: 28318
210
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Subversion actually doesn't impose a whole lot of constraints on how it stores things. The "trunk, tags and branches" directories are a convention, not an absolute requirement. Some of the Eclipse plugins do add their own interpretation so that, for example, they'll ask you if you really want to update a tag, since in theory tags refer to permanent snapshots, but Subversion itself doesn't care.

Normally when I commit a project, I tell the plugin to place the project in a trunk and build any missing nodes, so that for example, "myproject" ends up in the repository under "myproject/trunk/myproject". I suppose that "myproject/trunk" would do, but I prefer the extra flexibility.

Of course, occasionally, I forget to put in the extra path parts when I do the initial commit.
 
peter tong
Ranch Hand
Posts: 327
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks for the reply.
there is something I still don't know.
Assume I have a project and I want to place this project into VisualSVN server through subclipse, what I need to do is team > share, add to repository and commit, but no need to do checkout procedure?
Checkout procedure is used for other member to get the project from SVN server to their working place, is this correct?
 
Tim Holloway
Saloon Keeper
Posts: 28318
210
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Functionally, you have to import the project into the repository, then check it out, because the difference between the original project and a working copy is that the working copy also contains the svn management metadata (the hidden .svn folders and so forth).

However, unless I'm mistaken, the subclipse plugin handles all that stuff for you. So yes, do a "team/share" and add the project. If I'm correct, you should then see the SVN project name appear next to the Eclipse project name in the Navigator tree view.
 
peter tong
Ranch Hand
Posts: 327
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
yes, I have try using subclipse, to import a existing eclipse project to svn server, just right click and select team > share project, then in Team synchronizing perspective, add the source to repository ("add to version control") and commit it (if not commit, the source cannot be seen in SVN server),
then in eclipse package explorer, I found my eclipse project name "GWTDesignerFirstTrial" has a grey name "[GWTDesignerFirstTrial/trunk]" next to it.

and one thing also feel strange, in window explorer, go to the workspace folder, there is only one .svn folder (e.g. GWTDesignerFirstTrial\.svn),
but in normal, there should be one .svn folder under each folder of the check in project in window explorer, isn't it?

I found the term of subclipse is really difficult to understand. it has no something like "import", "checkout"!!

 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In subclipse, when you go to Team | Share Project, the only thing that is done is creating the project folder in Eclipse. You then need to go to Team | Commit and then all of the source files will be uploaded to the Subversion server. Once that is done, you will see the .svn folder in every folder within your project.

As far as checking out, you need to go to File | Import | SVN | Checkout Project from SVN. Then select the repository location and then browse to your project's folder within Subversion.
 
peter tong
Ranch Hand
Posts: 327
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Peter Johnson wrote:In subclipse, when you go to Team | Share Project, the only thing that is done is creating the project folder in Eclipse. You then need to go to Team | Commit and then all of the source files will be uploaded to the Subversion server. Once that is done, you will see the .svn folder in every folder within your project.

As far as checking out, you need to go to File | Import | SVN | Checkout Project from SVN. Then select the repository location and then browse to your project's folder within Subversion.



seems not, I already try to commit all of the source file to subversion server, but there is still only one .svn folder under the project seen in window explorer. anyway, other things seems normal.
 
Peter Johnson
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In that case, I would have to see the complete contents of both the project directory and of the directory in Subversion, because I have never seen the behavior you describe, and I've been using subclipse for years. To get the project contents, open a command prompt, cd to the project directory and enter:

dir /a /b /s *

To do the same for the files in Subversion, enter (replacing <url-for-project> with the actual url):

svn -R <url-for-project>

Also, when you created the project in Eclipse, you did put it into the default workspace directory, right? That is, you did not choose some directory outside of workspace.
 
Tim Holloway
Saloon Keeper
Posts: 28318
210
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

peter tong wrote:

seems not, I already try to commit all of the source file to subversion server, but there is still only one .svn folder under the project seen in window explorer. anyway, other things seems normal.



2 things:

1. Depending what view you use in Eclipse, the .svn folders may not display. That is the way that that particular view looks at things.

2. The .svn folders may not appear even in Eclipse views that would show them until you refresh the view.

In the Windows File Explorer, the .svn folders may not be visible under normal circumstances because their "Invisible" flags should have been set. Invisible files/folders will only be seen if the Explorer settings for the directory being viewed allow it, either on a per-folder override, or via inheritance.

In other words, we're pretty positive that the .svn folders are there. Seeing them is another matter. Then again, there's no reason why you would normally want to see them.
 
peter tong
Ranch Hand
Posts: 327
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
the forum always said I have use abbreviation in reply although I have not.
with no method, I put the listing as attachment.

I cannot list the svn server using

it always said cannot connnect
svn3.jpg
[Thumbnail for svn3.jpg]
 
peter tong
Ranch Hand
Posts: 327
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I try to test in my home, and the result is as follow, there is only one .svn folder in window exploror
the output of dir /a /b /s * is


the output from svn list -r "url" is


 
Peter Johnson
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I just now noticed that you installed subclipse 1.8.x, which use the Subversion 1.7 client. At times, it helps to RFTM:
http://subversion.apache.org/docs/release-notes/1.7.html#single-db
 
What do you have to say for yourself? Hmmm? Anything? And you call yourself a tiny ad.
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic