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

Multi-folder tagging with a single commit?

From: Michael Cowperthwaite <mikec_at_lathropengineering.com>
Date: Thu, 16 Jul 2009 15:49:07 -0700

I'm working on a project which has four main directories. Currently,
only two of the directories are pertinent and those are what I'd like to
tag. I would like to be able to copy both of those folders in their
entirety to a new subfolder of 'tags' in a single commit, similar to the
single commit I can perform by copying from the trunk root to the new
subfolder. In essence, I want this:

    svn copy svn://trunk/f1 svn://trunk/f2 svn://tags/NewTag

(with the resulting NewTags containing both folders, f1 and f2, fully
populated) without having to create /tags/NewTag first. But svn just
throws up its hands because NewTag doesn't exist. The command works
just fine if the folder exists, but creating that folder in the
repository requires an additional commit.

This seems inconsistent with

    svn copy svn://trunk svn://tags/NewTag

which *does* create the NewTag folder, but of course it copies the
contents of trunk, rather than creating a 'trunk' subfolder of NewTag.
I would not want the two-source-folder version to mingle all the
contents into a single folder.

I know, from a recent thread, that svn copy is intended to emulate Unix
cp, altho playing around with this in a CygWin window, I'm not readily
discovering any form (single or multi-folder source) with which cp
creates the folder. I don't think Windows' command-line COPY command
creates a folder either.

Maybe I've just got a foggy model in my head, but automatically creating
the new folder doesn't seem like it should be a big deal; I don't know
how else you'd interpret that first copy command up there.

-- 
Mike Cowperthwaite
Lathrop Engineering, San Jose CA
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2371905
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-07-17 01:15:20 CEST

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.