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

Re: Error bumping revisions post-commit on move / commit

From: Saloucious <saloucious_at_gmail.com>
Date: Tue, 5 May 2009 06:20:55 -0700 (PDT)

I've tested my script again with 2 others cases (only changed lines):

svn move dir1/ src/main/
svn move dir1/dir2/dir3 src/main/java/

and

svn move dir1/ src/main/
svn move src/main/dir1/dir2/dir3 src/main/java/

Same behaviour with a bumping error on commit...

Saloucious wrote:
>
> Ok, i will change my script usecase by trying to move dir1 first and check
> if everything is alright.
>
> You're right, this is probably not a bug, but subversion should warn when
> trying to move topmost dir1 (have to add --force option to move ...)
> because after commiting, my working copy is unusable.
>
>
> Ryan Schmidt-50 wrote:
>>
>> On May 4, 2009, at 06:49, Saloucious wrote:
>>
>>> I'm actually on a project where I need to create and move a lot of
>>> directories and i've got an bumping error in logs.
>>>
>>> I've tried to recreate the error with a little script (running on
>>> Ubunti
>>> 9.04 + Subversion v1.5.1)
>>>
>>> This script fails
>>> -----------------------------------
>>> #Create a new project and import it
>>> mkdir -p $newproject/dir1/dir2/dir3/dir4
>>> touch $newproject/dir1/dir2/dir3/dir4/test.html
>>> touch $newproject/dir1/dir2/dir3/test.html
>>> svn import -m "init" $newproject/ svn://localhost/repo/$newproject
>>>
>>> #Checkout the new project and move 2 directories
>>> svn checkout svn://localhost/repo/$newproject $project
>>> cd $project
>>> mkdir -p src/main/java
>>> svn add src/
>>> svn move dir1/dir2/dir3 src/main/java/
>>> svn move dir1/ src/main/
>>
>> You need to move dir1 first, and then make any additional changes
>> inside dir1 (such as moving dir3).
>>
>> I do not know if what you are seeing is to be considered a bug.
>> Certainly the error message, at least, could be better. But I do know
>> that this will not work, as you discovered, and that the fix is to
>> start by making changes in the topmost directory and work your way
>> down, not the other way around.
>>
>> Or do these steps as separate commits, which will work fine.
>>
>>
>>> svn commit -m "ko" ./
>>>
>>> Here is the commit log :
>>> Deleting dir1
>>> Adding src
>>> Adding src/main
>>> Adding src/main/dir1
>>> Deleting src/main/dir1/dir2/dir3
>>> Adding src/main/java
>>> Adding src/main/java/dir3
>>> svn: Commit succeeded, but other errors follow:
>>> svn: Error bumping revisions post-commit (details follow):
>>> svn: Directory
>>> '/home/bguerout/projects/a_test_co/src/main/dir1/dir2/dir3/dir4' is
>>> missing
>>> svn: Directory
>>> '/home/bguerout/projects/a_test_co/src/main/dir1/dir2/dir3/dir4' is
>>> missing
>>>
>>> And svn status log :
>>> D dir1
>>> D dir1/dir2
>>> D dir1/dir2/dir3
>>> D dir1/dir2/dir3/dir4
>>> D dir1/dir2/dir3/dir4/test.html
>>> D dir1/dir2/dir3/test.html
>>> A src
>>> A src/main
>>> A + src/main/dir1
>>> D + src/main/dir1/dir2/dir3
>>> D + src/main/dir1/dir2/dir3/test.html
>>> A src/main/java
>>> A + src/main/java/dir3
>>>
>>> The commit command has succeed but my working copy is locked and
>>> clean-up do
>>> no work.
>>>
>>> But if I change the third line 'touch $newproject/dir1/dir2/dir3/
>>> test.html'
>>> to 'touch $newproject/dir1/dir2/test.html', everything is ok.
>>
>> ------------------------------------------------------
>> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2061131
>>
>> To unsubscribe from this discussion, e-mail:
>> [users-unsubscribe_at_subversion.tigris.org].
>>
>>
>
>

-- 
View this message in context: http://www.nabble.com/Error-bumping-revisions-post-commit-on-move---commit-tp23366701p23387315.html
Sent from the Subversion Users mailing list archive at Nabble.com.
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2069352
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-05-05 15:21:55 CEST

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.