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

Re: Committing Checkouts from multiple locations in a single commit.

From: Ryan Schmidt <subversion-2007b_at_ryandesign.com>
Date: 2007-05-05 02:39:48 CEST

On May 4, 2007, at 11:39, Irvine, Chuck R [EQ] wrote:

>> How can I commit two seperately checked out folders
>> silmultaneously, so that when viewing the comments in SVN,
>> all the files were commited as the same revision?
>> Here's a diagram of my WORKING Copy configuration:
>> C:\SVN-
>> |_Checkout Folder 1\Files and folders here
>> |_Checkout Folder 2\Files and folders here
>> Both checkout folders are seperate checkouts from different
>> locations in the repository. If I run this command: svn
>> commit "c:\svn" -m "Commited both folders"
>> Only Checkout Folder 1, and all of it's subdirectories/code
>> is commited. - I need checkout 2 subdirectories and code to
>> be committed as well, under the same revision.
> One possibility, do your "svn co" at a higher level in the repo.
> Repo/
> arbitraryDir/
> Folder1/
> Folder2/
> In this case do your checkout on Repo/arbitraryDir.

This is the solution I'd recommend. You can even use non-recursive
checkouts to limit what data gets downloaded from the repository.

For example, consider that you want to be able to commit a revision
which changes all of the following repository paths at once:


To make a working copy that can support such a transaction, check out
the path that's common to all of the above -- in this case, the root
of the repository. Check it out non-recursively:

svn co -N $REPO wc

Now go into the working copy and non-recursively update each
directory you're interested in:

cd wc
svn up -N a
svn up -N a/b
svn up -N a/b/c
svn up -N d
svn up -N d/e
svn up -N f
svn up -N f/g
svn up -N f/g/h
svn up -N f/g/h/i

Now you can make any changes you want, and commit them all by
committing at the root of the working copy.

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat May 5 02:41:05 2007

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.