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

Re: How to avoid duplicate filename on Windows?

From: Konstantin Kolinko <knst.kolinko_at_gmail.com>
Date: Thu, 19 Jun 2008 18:46:11 +0400

> I think use hook script force to update before commit may solve this
> case.
I do not understand this. Why you need to force an update before
commit?

Concerning your python error message: let me describe, how I
understand it. Maybe you have a different point of view.

I numbered the lines.

(1) Error: Commit failed (details follow):
(2) Error: Commit blocked by pre-commit hook (exit code 1) with output:
(3) Error: Traceback (most recent call last):
(4) Error: File "D:\case-insensitive.py", line 100, in <module>
(5) Error: repos_handle =
(6) repos.open(sys.argv[1].decode(native).encode('utf-8'))
(7) Error: File "C:\Python25\Lib\site-packages\libsvn\repos.py", line 47,
(8) in svn_repos_open
(9) Error: return apply(_repos.svn_repos_open, args)
(10) Error: libsvn._core.SubversionException: ("Expected FS format '2';
(11) found format '3'", 160043)
(12) Error: Error found in commit

1. line (2): The error occurred in pre-commit hook.
2. lines (4), (7):
 - You are using MS Windows;
 - your hook script is located in the root of drive D:\
 - your python is in C:\Python25\, with subversion bindings installed
in C:\Python25\Lib\site-packages\

3. lines (10)-(11):

 The code (the subversion dll library that is called by the python
code) is trying to access FSFS repository, but its format file
(/db/format) is saying that it is Subversion 1.5 repository
(format=3), and not format=2. Format=2 is the format used by
Subversion 1.4.

 Note, that for a working copy the format numbers are different:
format=8 of a working copy means svn=1.4, format=9 means svn=1.5. Thus
your numbers (2, 3) are from the repository.

> Should I disseminate hook script batch files to developers...

I do not see any bugs in these scripts. There is a configuration issue
around there, that your bindings are not working.
I do not feel like it is a bug for developers, but you may ask help how to
properly install the bindings.
I feel that users(at)subversion.tigris.org mailing list is the place
to ask that.

Yesterday I posted the question on installing the bindings to the
CollabNet forum.
You can see the answers there:

http://merge-tracking.open.collab.net/ds/viewMessage.do?dsForumId=57&dsMessageId=91850

Best regards,
Konstantin Kolinko

2008/6/19 Edwin <EdwinTai_at_gmail.com>:
> I had tried to get python binding from SVN 1.5.x but faild..
> I think use hook script force to update before commit may solve this
> case.
> but I can not find upate hook scirpt for server only for client.
> Should I disseminate hook script batch files to developers..
>
> On 6月18日, 下午4時45分, "Konstantin Kolinko" <knst.koli..._at_gmail.com>
> wrote:
>> Do not forget to post to the list when replying.
>>
>> The python script works, but the python bindings library that you
>> have installed is for subversion 1.4.
>>
>> I do not see a separate installer for the bindings on the download page
>> (http://merge-tracking.open.collab.net/servlets/ProjectProcess?pageID=...),
>> but the SVN 1.5.0-RC9 Server for Windows installer is said to include them.
>>
>> And yes, it has them, but it seems that it does not install them anywhere.
>>
>> My advice: use the 7-zip archiver program to open the msi file of the installer,
>> and extract the files from there. They are in "$R5" subfolder there.
>>
>> Best regards,
>> Konstantin Kolinko
>>
>> 2008/6/18 Edwin <Edwin..._at_gmail.com>:
>> >> You can use the Repository Browser dialog to rename, move or delete
>> >> the conflicting file.
>> > it works fine.Thank you.
>>
>> >> > I use case-insensitive.py to check but it doesn't work on Subversion 1.5.x
>> > I got error as below. seems format different..
>> > Error: Commit failed (details follow):
>> > Error: Commit blocked by pre-commit hook (exit code 1) with output:
>> > Error: Traceback (most recent call last):
>> > Error: File "D:\case-insensitive.py", line 100, in <module>
>> > Error: repos_handle =
>> > repos.open(sys.argv[1].decode(native).encode('utf-8'))
>> > Error: File "C:\Python25\Lib\site-packages\libsvn\repos.py", line 47,
>> > in svn_repos_open
>> > Error: return apply(_repos.svn_repos_open, args)
>> > Error: libsvn._core.SubversionException: ("Expected FS format '2';
>> > found format '3'", 160043)
>> > Error: Error found in commit
>>
Received on 2008-06-19 16:46:31 CEST

This is an archived mail posted to the TortoiseSVN Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.