[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

How do I tag a module in subversion?

From: <Sean_Shubin_at_mapinfo.com>
Date: 2004-02-27 22:04:06 CET

It is my understanding that subversion externals replace cvs modules, and
svn copy replaces cvs tag.

In cvs, I have created a module with one application and 3 components the
application depends on.
In svn, I have duplicated this by referencing the 3 components as
externals.
In cvs, I could just tag the root of the moudle, and I would get a
snapshot in time of the application and 3 components.
In svn, the "svn copy" command only gives me a snapshot of the
application, the 3 components (using externals) still refer to HEAD.

I realize that I could just change each of my externals definitions to
refer to the current revision every time I want a tag,
but it seems to me that there should be a way to make this as easy to do
as it is in CVS.

Can anyone tell me what I should be doing here?

The structure I am trying to achieve looks like this:
components
  c1
    trunk
  c2
    trunk
  c3
    trunk
applications
  a1
    trunk
      source
      externals
        c1 (-rHEAD components/c1/trunk)
        c2 (-rHEAD components/c2/trunk)
        c3 (-rHEAD components/c3/trunk)
    tags
      release-1.0.0
        source
        externals
          c1 (-r20 components/c1/trunk)
          c2 (-r20 components/c1/trunk)
          c3 (-r20 components/c1/trunk)

And here is the command I use:
c:\svn_source\applications\a1>svn copy trunk tags/release-1.0.0

What I want is the copied externals to switch from HEAD to the current
revision (20 in the example).
What happens is that the externals remain at HEAD.

========================================
Sean Shubin
MapInfo, Predictive Analytics
Newport Beach, CA
(949) 885-4926
Received on Fri Feb 27 22:05:44 2004

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.