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

Re: Is it possible to overwrite a file with a copy of something else in a single commit?

From: Ivan Zhakov <chemodax_at_gmail.com>
Date: 2005-11-10 09:24:16 CET

On 11/8/05, Aleksey Nogin <aleksey@nogin.org> wrote:
> On 07.11.2005 15:57, Philip Martin wrote:
>
> > Use the trunk :)
> >
> > $ svn rm wc/foo
> > D wc/foo
> > $ svn cp wc/bar wc/foo
> > A wc/foo
> > $ svn st wc
> > R + wc/foo
> >
> Cool! Will it work for directories too?
It is implemented in wc library (so merging directory replacements
should work), but current cp/mv command syntax doesn't allow this:
there is no way to copy/move directory over existing. It automaticly
copied INTO directory.

--
Ivan Zhakov
Received on Thu Nov 10 09:28:10 2005

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.