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

Re: reverse merging a delete operation

From: Ulrich Eckhardt <eckhardt_at_satorlaser.com>
Date: 2005-08-15 13:41:18 CEST

Jacob Atzen wrote:
> On fre, aug 12, 2005 at 09:21:11 +0200, Ulrich Eckhardt wrote:
> > In r410, someone deleted folder '/foo-lib' where we stored releases of
> > the external library 'foo'. Now, some time later, we also store some
> > examples (the former '/foo-examples') and the sources in '/foo/sources'
> > and '/foo/examples'. What I now want to do is revive the old '/foo-lib'
> > into '/foo/releases'. My first approach was to simply reverse-merge the
> > deletion:
[...]
> FWIW, I just replayed your scenario locally with the following sequence.
> Cwd is the directory trunk in the working copy:
>
> $ svn mkdir foo
> $ touch foo/bar
> $ svn add foo/bar
> $ svn ci -m "* Added directory foo"
> Committed revision 17.
>
> $ svn delete foo
> $ svn ci -m "* Deleted directory foo"
> Committed revision 18.
>
> $ svn mkdir baz
> $ svn ci -m "* Added directory baz"
> Committed revision 19.
>
> $ svn merge -r18:17 [repository-url]/trunk baz
> A baz/foo
> A baz/foo/bar

I see, so I should have specified not the folder that was deleted but rather a
parent thereof. I still wonder, though that's rather the developer in me,
whether this is the right behaviour.

Also, if you had wanted to have file 'bar' end up as 'baz/bar', there would
not have been a way to specify this, right?

Uli

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Aug 15 13:43:07 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.