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

Re: Moving root repository

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2002-10-17 00:46:13 CEST

Brandon Ehle <azverkan@yahoo.com> writes:

> There are roughly 150 directories & files in the root that need to be
> moved, is there anyway to achieve this via wildcards or something else

If you check out the entire repository you can use wildcards on the
working copy, asssuming your shell supports them (probably not
Windows). This isn't really feasible if the repository is large and
has lots of tags/branches.

Otherwise

for i in `svn ls URL | egrep -v '(trunk|tags)'` ; do echo svn mv URL/$i URL/trunk ; done

take out the echo if/when it looks right!

-- 
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Oct 17 00:46:57 2002

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

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