I've been working on a project for a while and decided I wanted to move it to a Subversion repository to help the tracking of changes and integration into a bug tracker and eventually TeamCity.
My Subversion installation is running on openSUSE 11.4 with SVN version 1.6.15 (latest version, but a patch or two behind) and using svnserve to serve commands and I created a repository named "LicenseManager" (the same name as my project).
My repository URL is along the lines of svn://svn.example.org/LicenseManager
I created parent directories like so:
# svn mkdir --parents svn://svn.example.org/LicenseManager/trunk svn://svn.example.org/LicenseManager/tags svn://svn.example.org/LicenseManager/branches
I can see those directories like so:
# svn list svn://svn.example.org/LicenseManager
I have configured IDEA to connect to my repository at svn://svn.example.org/LicenseManager and I can browse it and see the parent directories I created. However, here's where my problems start:
I can "import" my project into the trunk directory, but doing so does no good, as IntelliJ does not recognize it as its project. I can't compare changes I made to a file or anything ... all of those changes are greyed out.
For a while, at first, IntelliJ thought some (not all) of the files I imported into Subversion were part of the project and allowed me to click things like "Commit" or "Compare with latest version," only to then give me the error "Error: svn: '/Users/Nicholas/....../LicenseManager/trunk/web/WEB-INF/jspf' is not a working copy." After this error, the "Commit," "Compare..." and related options were unavailable. Only "Add."
I cannot add any files to the repository. The "Add" option isn't greyed out, but when I click on it, I get the error "Error: svn: No versioned parent directories."
If I try to integrate the project into the repository, I get "SVN: Update Error" pop-up dialog with error "No versioned directories to update was found." (The grammar error was not mine.)
I'll admit I'm new to subversion, and I haven't been using it long, but I would have thought it would have been easier than this to add an IDEA project into Subversion, and the documentation only covers (well) opening a project from a repository. It offers very little help getting my existing project into a repository, and certainly doesn't address any of these errors.