You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Bert Huijben <be...@qqmail.nl> on 2010/04/26 14:57:10 UTC

RE: svn looses history when moving directories

> -----Original Message-----
> From: Mark Phippard [mailto:mphippard@collab.net]
> Sent: maandag 26 april 2010 16:03
> To: CollabNet Subversion Client
> Subject: Re: svn looses history when moving directories
> 
> On 4/26/10 9:42 AM, "Piet-Hein Peeters" <pi...@philips.com>
> wrote:
> 
> > That's still not the same usecase. My usecase has one file and one
directory
> > move:
> > $ svn mkdir B
> > $ svn mv A/foo.c B <-- file move
> > $ svn info B/foo.c
> > $ svn mv B C <-- directory move
> > $ svn info C/foo.c
> 
> OK yes I see this too.
> 
> Prior to 1.5 you could not even do this.  The second move would just fail.
> You seem to be implying there is some new bug, in terms of your reference
> to
> 1.6.6, but from my recollection of when the developers agreed to relax the
> restriction in 1.5, this was the compromise.  It could allow the second
move
> but it had to convert the file into a plain Add to do so.
> 
> Is there a version of SVN where this worked?

I just added a regression test on this interesting case in Subversion trunk
(r93807) to make sure we get this fixed with the WC-NG work. 

I have no idea how hard it would be to fix this case for 1.6, but I would
certainly see this as a showstopper for the WC-NG store that was designed to
make recording operations like these much easier.

	Bert

RE: svn looses history when moving directories

Posted by "Peeters, Piet-Hein" <pi...@philips.com>.
> -----Original Message-----
> From: Bert Huijben [mailto:rhuijben@sharpsvn.net]
> Sent: 2010 Apr 26 4:57 PM
> To: CollabNet Subversion Client
> Cc: dev@subversion.apache.org
> Subject: RE: svn looses history when moving directories
> >
> > On 4/26/10 9:42 AM, "Piet-Hein Peeters" <pi...@philips.com>
> > wrote:
> >
> > > That's still not the same usecase. My usecase has one file and one
> directory
> > > move:
> > > $ svn mkdir B
> > > $ svn mv A/foo.c B <-- file move
> > > $ svn info B/foo.c
> > > $ svn mv B C <-- directory move
> > > $ svn info C/foo.c
> >
> > OK yes I see this too.
> >
> > Prior to 1.5 you could not even do this.  The second move would just fail.
> > You seem to be implying there is some new bug, in terms of your reference
> > to
> > 1.6.6, but from my recollection of when the developers agreed to relax the
> > restriction in 1.5, this was the compromise.  It could allow the second
> move
> > but it had to convert the file into a plain Add to do so.
> >
> > Is there a version of SVN where this worked?
>
> I just added a regression test on this interesting case in Subversion trunk
> (r93807) to make sure we get this fixed with the WC-NG work.
>
> I have no idea how hard it would be to fix this case for 1.6, but I would
> certainly see this as a showstopper for the WC-NG store that was designed to
> make recording operations like these much easier.
>
>       Bert
>

Hello,

I was not aware that the possibility to do this came with a compromise, but I'm glad that you will pick this up to get it fixed.

Regards,
Piet-Hein


The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message.

Re: svn looses history when moving directories

Posted by Johan Corveleyn <jc...@gmail.com>.
On Mon, Apr 26, 2010 at 4:57 PM, Bert Huijben <be...@qqmail.nl> wrote:
>> -----Original Message-----
>> From: Mark Phippard [mailto:mphippard@collab.net]
>> Sent: maandag 26 april 2010 16:03
>> To: CollabNet Subversion Client
>> Subject: Re: svn looses history when moving directories
>>
>> On 4/26/10 9:42 AM, "Piet-Hein Peeters" <pi...@philips.com>
>> wrote:
>>
>> > That's still not the same usecase. My usecase has one file and one
> directory
>> > move:
>> > $ svn mkdir B
>> > $ svn mv A/foo.c B <-- file move
>> > $ svn info B/foo.c
>> > $ svn mv B C <-- directory move
>> > $ svn info C/foo.c
>>
>> OK yes I see this too.
>>
>> Prior to 1.5 you could not even do this.  The second move would just fail.
>> You seem to be implying there is some new bug, in terms of your reference
>> to
>> 1.6.6, but from my recollection of when the developers agreed to relax the
>> restriction in 1.5, this was the compromise.  It could allow the second
> move
>> but it had to convert the file into a plain Add to do so.
>>
>> Is there a version of SVN where this worked?
>
> I just added a regression test on this interesting case in Subversion trunk
> (r93807) to make sure we get this fixed with the WC-NG work.
>
> I have no idea how hard it would be to fix this case for 1.6, but I would
> certainly see this as a showstopper for the WC-NG store that was designed to
> make recording operations like these much easier.

Heh, this is exactly the bug I discovered a while ago. I filed an
issue about it, which describes the exact same scenario:
http://subversion.tigris.org/issues/show_bug.cgi?id=3474

Glad to see I'm not the only one who has run into this, so the bug
gets some more attention :-).

Maybe the issue should be marked as "milestone 1.7", and a link to
this current mailthread could be added?

Cheers,
-- 
Johan