On Tue, Feb 26, 2008 at 1:01 PM, Rush Manbert <rush_at_manbert.com> wrote:
> A question has come up here that I would like to ask the group.
>
> Assume that I create a working copy by checking out my head rev of
> trunk, then selectively using svn switch on certain WC subdirectories so
> that they get populated from some directory other than the original. The
> proposed use case is that we have created a branch from some
> subdirectory and use svn switch to substitute it for the original
> directory we got on the trunk checkout.
>
> I test with my working copy, and am happy that it works as desired.
>
> Now comes the question.
>
> Can I somehow "compose" a tag directory in the repository that reflects
> the source code that was used to piece together my working copy? The
> proposal is that we would use svn copy within the repository, something
> like this:
>
> svn cp trunk tags/release1_1/something
> svn cp branches/projects/subdirProject/subdir
> tags/release1_1/something/path/to/subdir
> etc.
>
> In theory, we would walk the working copy tree, find every directory
> that was switched, see what it was switched to, then build up the series
> of svn copy commands.
>
> My initial reaction was that I didn't think this was possible, but I
> would like to put the question to the experts. Is this possible?
You can create the tag from your WC to get what you want.
svn cp -m "Create complex tag" . url://server/repos/tags/r1.1
This is covered in the book too:
http://svnbook.red-bean.com/en/1.4/svn.branchmerge.tags.html#svn.branchmerge.tags.mkcomplex
--
Thanks
Mark Phippard
http://markphip.blogspot.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-02-26 19:08:51 CET