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

Re: Overwriting files.

From: Talden <talden_at_gmail.com>
Date: Wed, 27 May 2009 21:57:36 +1200

> This is going to be one of those "stupid" questions...
> Where I end up feeling like a bit of an idiot for having to ask....
> but far better to ask and feel foolish and get some appropriate
> instructions - than not to ask and simply be foolish!
>
> Anyway,
>
> I have the folloiwng paths in the repo already.
> trunk/
> branches/vendor1/
>
> What I need to do is completely overwrite vendor1 with the current
> state of the trunk.
>
> I thought that svn copy would be my friend..
> svn copy trunk/ branches/vendor1/
> but it won't work because the target already exists, and it doesn't
> have a --force option either.

svnmucc is your friend. You can do this operation in a single step.

something like

CMD> svnmucc -U svn://myserver/myrepo -m "Replacing the vendor1 branch
with trunk" rm /projectX/branches/vendor1 cp HEAD /projectX/trunk
/projectX/branches/vendor1

Or something like that... Test it/check the docs, I'm not certain of
that commandlines correctness.

You'll need a binaries bundle with svnmucc built, or build it
yourself. On Windows I use SlikSvn.

--
Talden
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2355706
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-05-27 11:58:36 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.