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

Re: Move to a new layout

From: Brass Tilde <brasstilde_at_insightbb.com>
Date: 2005-01-10 17:59:10 CET

> >> Everything currently in /MyProject should be moved to the trunk
> >> location. The one suggestion I saw used shell scripting, which I don't
> >> really have access to being that this is on a Win2K server.

> > WARNING! PSEUDO CODE FOLLOWS:
> >
> > cd MyProject-working-copy
> >
> > svn mkdir trunk
> > svn mkdir branches
> > svn mkdir tags
> >
> > svn mv (everything less trunk/, branches/ and tags/) trunk

> Maybe I'm inserting my own opinions into the original poster's question,
> but I think this part is what he is asking about. It doesn't accept
> wildcards and typing this command hundreds of times isn't really an
> option. With some shell programming, it can be done, but the OP says he
> doesn't have access to that. Why doesn't "svn move" accept wildcards?

Depends on what "don't really have access" means. Does it mean can't run
batch files or open a command prompt, or does it mean that he doesn't know
how to do the things needed? The "svn move" step above could be
accomplished by doing something like this at a DOS command prompt, not even
in a script:

    for %v in (<fspec.1> <fspec.2> <fspec.N>) do svn move %v trunk\%v

Default "shell scripting" in Windows is perhaps not as flexible as offered
in some *nix shells, but can still accomplish quite a bit.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Jan 10 18:04:43 2005

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.