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

Re: svn mv's and empty commits

From: Blair Zajac <blair_at_orcaware.com>
Date: 2006-08-22 00:55:46 CEST

On Aug 20, 2006, at 1:13 PM, Philip Martin wrote:

> Blair Zajac <blair@orcaware.com> writes:
>
>> Moving a file using URLs into one of its parent's directories where
>> the destination URL ends only in the destination directory looks like
>> it succeeds, but does not. For example,
>>
>> svn mv http://example.com/repos/A/B/file.txt http://example.com/
>> repos/A/
>>
>> causes this. If you use http://example.com/repos/A/file.txt, then
>> you
>> get the add and the delete.
>>
>> Has this been seen before? I looked through the issue tracker
>> quickly
>> and didn't see anything.
>>
>> At the end of this recipe, you end up with an empty commit. This
>> happens with 1.3.2.
>>
>> rm -fr repos wc
>> svnadmin create repos
>> svn co file://`pwd`/repos wc
>> cd wc
>> svn mkdir A
>> svn mkdir A/B
>> svn ci -m 'create A/B'
>> touch A/B/file.txt
>> svn add A/B/file.txt
>> svn ci -m 'add file.txt'
>> cd ..
>> svn mv -m 'move file.txt' file://`pwd`/repos/A/B/file.txt file://
>> `pwd`/repos/A
>> cd wc
>> svn update
>> svn log -v -r HEAD
>
> If I try that using trunk I get
>
> ----------------------------------------------------------------------
> --
> r3 | pm | 2006-08-20 21:11:47 +0100 (Sun, 20 Aug 2006) | 1 line
> Changed paths:
> D /A/B/file.txt
> A /A/file.txt (from /A/B/file.txt:2)
>
> move file.txt
> ----------------------------------------------------------------------
> --
>
> which looks correct.

Philip,

Thanks for testing that.

I'll close the ticket.

Regards,
Blair

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Aug 22 06:32:54 2006

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.