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

RE: merging from branches with deleted and readded (replaced) files

From: Lieven Govaerts <lgo_at_mobsol.be>
Date: 2006-06-19 23:28:05 CEST

This looks like issue 2144:
http://subversion.tigris.org/issues/show_bug.cgi?id=2144 .

The issue is solved and will be included in svn 1.4.

regards,

Lieven.

> -----Original Message-----
> From: Clemens Wehrmann [mailto:clemens.wehrmann@ciao-group.com]
> Sent: maandag 19 juni 2006 22:30
> To: users@subversion.tigris.org
> Subject: merging from branches with deleted and readded
> (replaced) files
>
> I'm hoping someone can help me understand what happens when
> merging changes from a branch that contain deleted and later
> readded files. The merge seems to work, but the commit
> fails, claming the file is out of date... I'm sure this is a
> FAQ, but I didn't find it. How should this situation be handled?
>
> Many thanks,
> --clemens
>
> server 1.2.3 (using apache2+mod_dav_svn.so) (also verified
> against local
> 1.3.1 file:/// repository)
> client 1.3.1
>
> server:
> $ svnadmin create /svn/test
>
> client:
>
> $ svn co http://svn/test
> Checked out revision 0.
>
> $ mkdir -p branches/foo
> $ svn add branches/
> A branches
> A branches/foo
> $ svn ci -m,
> Adding branches
> Adding branches/foo
>
> Committed revision 1.
>
> $ mkdir -p branches/foo/dollop/dingle
> $ echo foobar > branches/foo/dollop/dingle/stuff $ svn add
> branches/foo/dollop
> A branches/foo/dollop
> A branches/foo/dollop/dingle
> A branches/foo/dollop/dingle/stuff
> $ svn ci -m,
> Adding branches/foo/dollop
> Adding branches/foo/dollop/dingle
> Adding branches/foo/dollop/dingle/stuff
> Transmitting file data .
> Committed revision 2.
>
> $ svn cp branches/foo branches/bar
> A branches/bar
> $ svn ci -m,
> Adding branches/bar
> Adding branches/bar/dollop
>
> Committed revision 3.
>
> $ cd foo/dollop/dingle/
> $ echo banana >> stuff
> $ svn ci -m,
> Sending dingle/stuff
> Transmitting file data .
> Committed revision 4.
>
> $ svn delete stuff
> D stuff
> $ svn ci -m,
> Deleting dingle/stuff
>
> Committed revision 5.
>
> $ echo another one > stuff
> $ svn add stuff
> A stuff
> $ svn ci -m,
> Adding dingle/stuff
> Transmitting file data .
> Committed revision 6.
>
> $ echo more and more >> stuff
> $ svn ci -m,
> Sending dingle/stuff
> Transmitting file data .
> Committed revision 7.
>
> $ cd ../../../bar
> $ svn up
> At revision 7.
>
> $ svn status -vu
> 7 2 clemens dollop/dingle
> 7 2 clemens dollop/dingle/stuff
> 7 3 clemens dollop
> 7 3 clemens .
> Status against revision: 7
>
>
> $ svn merge -r3:7 http://svn/test/branches/foo .
> D dollop/dingle/stuff
> A dollop/dingle/stuff
>
> $ svn status -v
> 7 3 clemens .
> 7 3 clemens dollop
> 7 2 clemens dollop/dingle
> R + - 7 clemens dollop/dingle/stuff
> $ svn status -vu svn: REPORT request failed on
> '/svn/test/!svn/vcc/default'
> svn: Working copy path 'dollop/dingle/stuff' does not exist
> in repository
>
> $ svn diff dollop/dingle/stuff
>
> $ svn ci -m,
> Replacing bar/dollop/dingle/stuff
> svn: Commit failed (details follow):
> svn: Item '/branches/bar/dollop/dingle/stuff' is out of date
>
> ### update: Trying this against a local file:/// repository
> build with ### svnadmin 1.3.1 has the same issue. The error
> message is slightly ### different:
> Replacing bar/dollop/dingle/stuff
> svn: Commit failed (details follow):
> svn: Out of date: '/branches/bar/dollop/dingle/stuff' in
> transaction '7-1'
>
> $ svn diff dollop/dingle/stuff
> $ ls dollop/dingle/stuff
> dollop/dingle/stuff
>
> $ svn status -v
> 7 3 clemens .
> 7 3 clemens dollop
> 7 2 clemens dollop/dingle
> R + - 7 clemens dollop/dingle/stuff
> $ svn up
> svn: REPORT request failed on '/svn/test/!svn/vcc/default'
> svn: Working copy path 'dollop/dingle/stuff' does not exist
> in repository
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Jun 19 23:34:04 2006

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.