Best way to have an SVN folder inside another SVN folder?

So I have this type of setup

  • Web Root
    • Index.php
    • /Images
    • /Stuff
    • /my_svn_library
      • /More_stuff

Where Web Root is a respository on our SVN server located at  /path/to/web_root
But my_svn_library is located somewhere else on the same SVN server /path/to/my_svn_library

What's the best way to tell PhpStorm what's going on here? When I have the PhpStorm project open at Web Root, it works most of the time. But sometimes it's confused about the files in my_svn_library. Right clicking it and selecting "resolve text conflict" seems to fix the issue. But I don't want to do this, and I don't know what it's doing anyways!

Comment actions Permalink

It should work automatically, try setting up explicit mappings in Settings | Version Control. As WebStorm SVN integration uses metadata from .svn directory, it can handle multiple repositories under the same root out of the box.

Comment actions Permalink

Thanks! But I just tried doing SVN mappings in the settings and the problem still persists.

Here's what my project looks like. open_web and open_web_lib are at different svn folders in the repo.  OpenWeb.php and xd_heper.html are definitely committed to open_web_lib. But they show up as not added.
Screen shot 2011-07-27 at 6.52.16 AM.png
I can right click on the file, go to SVN and "Add" is available, as if the file didn't exist in the SVN.
Screen shot 2011-07-27 at 6.53.04 AM.png

And I went into Version Control and setup these mappings. It didn't fix it.
Screen shot 2011-07-27 at 6.52.10 AM.png

After right clicking on open_web_lib and going to "Resolve Text Conflict" the issue goes away. But I have to do this every time I open up the project. And I have no idea what "Resolve Text Conflict" actually does.
Screen shot 2011-07-27 at 6.53.30 AM.png

Comment actions Permalink

Have you ever thought about creating svn:externals instead? In this case you don't need set create open_web_lib and checkout to it from that lib repo by hands on another PC.

Comment actions Permalink

Perfect Dmitriy. I should have been doing that all along.


Please sign in to leave a comment.