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

RE: [TSVN] Request: on Branch/Tag

From: Rodrigo Miguel Sá Guerra <rodrigo.guerra_at_SE.EFACEC.PT>
Date: 2004-07-05 13:38:12 CEST

That's precisely what I want to do. In subversion's book it is refered as
"Complex Tags".

When you say:

"The branch/tag command will still use your working copy.
(the label tells you "From _WC_ at URL:")"
                            ^^^^^

I think it's not true. The branch/tag command will use the URL of the trunk,
and not of my local working copy.
I've copied a paragraph or two from the subversion book, which explains what
i want´t to do.

#######################################
Creating a Complex Tag

Sometimes you may want your "snapshot" to be more complicated than a single
directory at a single revision.

For example, pretend your project is much larger than our calc example:
suppose it contains a number of subdirectories and many more files. In the
course of your work, you may decide that you need to create a working copy
that is designed to have specific features and bugfixes. You can accomplish
this by selectively backdating files or directories to particular revisions
(using svn update -r liberally), or by switching files and directories to
particular branches (making use of svn switch). When you're done, your
working copy is a hodgepodge of repository locations from different
revisions. But after testing, you know it's the precise combination of data
you need.

Time to make a snapshot. Copying one URL to another won't work here. In this
case, you want to make a snapshot of your exact working copy arrangement and
store it in the repository. Luckily, svn copy actually has four different
uses (which you can read about in Chapter 9), including the ability to copy
a working-copy tree to the repository:

$ ls
my-working-copy/

$ svn copy my-working-copy http://svn.example.com/repos/calc/tags/mytag

Committed revision 352.

Now there is a new directory in the repository, /calc/tags/mytag, which is
an exact snapshot of your working copy-mixed revisions, urls, and all.
#######################################

Thank you,
Rodrigo

-----Original Message-----
From: Stefan Küng [mailto:stefan.kueng@wagner-group.ch]
Sent: segunda-feira, 5 de Julho de 2004 11:53
To: Rodrigo Miguel Sá Guerra
Cc: dev@tortoisesvn.tigris.org
Subject: Re: [TSVN] Request: on Branch/Tag

Rodrigo Miguel Sá Guerra wrote:

> first of all I'm sorry for replying directly to you.

Please use the mailing list next time.

> I'm new to this kind of community, and I haven't find the answer to the
> mail I sent last week, that's why I re-send the email again.

Ok.
Have a look at http://tortoisesvn.tigris.org/list_etiquette.html
There you can find information about the mailing list and also links to
the mailing list archives which you can use if you're not subscribed to
the list.

> Steps I followed:
> 1 - I've updated my local copy with the head revision of the trunk.
> 2 - Locally, in the windows explorer, i've selected one folder inside my
> local copy, and i switched it's content to the content of a specific
> branch. Now my local copy has some files of the trunk, and some files
> from other branches.

If you used the "switch" command, then you have a working copy now which
isn't 'clean', i.e. a so called 'nested layout'. If possible, you should
avoid such nested layouts. Instead of switching, you should merge the
changes from those branches and just have your working copy point to trunk.

> 3 - In the windows explorer, in the folder of the project I've selected
> from the TortoiseSVN menu the option branch/tag. It opened a window with
> the following information:
>
> Repository
>
> From WC at URL:
> svn://localhost/trunk <- i want this to refer to my local working copy
> (witch is a mix of the trunk and some branches)

That's the URL from the WC (as the label above the URL indicates). This
is just an information for you since you _know_ the WC path already (you
clicked on that to bring up the dialog).
The branch/tag command will still use your working copy.
(the label tells you "From _WC_ at URL:")
                            ^^^^^

Stefan
Received on Mon Jul 5 14:43:31 2004

This is an archived mail posted to the TortoiseSVN Dev mailing list.

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