VCS Labeling with SVN + Externals

Hello,

i have this structure:

- /svn/Project/trunk
- /svn/Core/trunk
- /svn/Data/trunk

under /svn/Project/trunk the Core and Data are included as externals.
I have a VCS Root pointing to /svn/Project/trunk.
How do i configure Labeling to also label the externals in proper way?
- Project should be labeled to /svn/Project/tags
- Core to /svn/Core/tags
- Data to /svn/Data/tags

is this possible and how do i configure this?

Thanks

4 comments
Comment actions Permalink

Hi Stefan!

I think your SVN layout is not ideal - see http://svnbook.red-bean.com/en/1.1/ch04s07.html#svn-ch-4-sect-7.1
If you have three different "projects" you should have three differen builds - each tagging a project or you have one root (=trunk), one build an one label.

If you really want to lable the external projects (i don't recommend this!) and you know your externals you can lable by hand (e.g. via command line) (you may need the revision!). If you don't know the externals it should be possible to read the exernals (something like "svn propget svn:externals http://path/to/repos -R").

0
Comment actions Permalink

They are not three different projects.
It is one project with the two Externals:

  • Core -> Contains the business logic
  • Data -> The data layer which contains the logic to save the data to the database


And the Project is just the "container".

So when i label the Project i also need the other two projects to be labeled.

0
Comment actions Permalink

So when i label the Project i also need the other two projects to be labeled.


So I think it's only one project.

--> the layout should be something like:

-/svn/trunk/core
-/svn/trunk/data
-/svn/trunk/project   (if you need this)
-/svn/tags


(or
-/svn/trunk/components/core
-/svn/trunk/components/data
-/svn/trunk/components/project
-/svn/tags
)

0
Comment actions Permalink

Although I won't discuss whether structure is correct or not (it depends), I will answer to the question. First of all, you can read more about labeling here: http://confluence.jetbrains.com/display/TCD8/VCS+Labeling.

You need to add build feature(s) called VCS labeling for all VCS roots at once or particular root(s). After that you need to specify labeling rules in SVN VCS root. You can add more that one labeling rule to label externals, etc. as described in the document.

0

Please sign in to leave a comment.