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

Re: problem on email notification hook

From: fengbin <arithdon_at_gmail.com>
Date: Tue, 23 Jun 2009 13:34:55 +0800

Dear Ryan,
Thank you for your quick and clear response!!!!
1.Yes, I am using absolute path for the mailer.py ..-)
2. About this point I dont understand clearly. What do you mean
"repository was created with a newer version of Subversion than the server
that is now trying to read it"?
The repository is created in the server ,right? So there is another server
to read the data created in svn server?

Million thanks to you!

On Tue, Jun 23, 2009 at 1:26 PM, Ryan Schmidt <
subversion-2009b_at_ryandesign.com> wrote:

> On Jun 22, 2009, at 23:47, fengbin wrote:
>
> I am trying to setup email notification on commit. And my steps in as
>> following:
>>
>> 1.Create a repository by hello and only hello.c inside
>> 2.in the hook directory of hello I enable the email notification by using
>> mailer.py commit "$REPOS" "$REV" in post-commit script
>>
>
> You'll need the absolute path to mailer.py, unless you set the PATH
> environment variable within your hook script.
>
> 3.then I do commit in svn client and found the following issue.
>>
>> libsvn._core.SubversionException: ("Expected version '3' of repository;
>> found version '5'", 165005)
>>
>
> This means the repository was created with a newer version of Subversion
> than the server that is now trying to read it -- server being either
> svnserve, or mod_dav_svn in apache, or the svn client program itself if
> using the file:/// or svn+ssh:// protocols. Upgrade your svnserve /
> mod_dav_svn / svn to the same version.
>
> then I change the value in format file from 5 to 3
>>
>
> Don't do that. The message was telling you that the repository *is* format
> 5, but this server can only read up to format 3 repositories, meaning the
> server you're using is too old.
>
>
> and commit agin. This error disappeared but a new
>> error comes out:
>> Warnning:post-commit hook failed (exit code 1) with output:
>> Traceback (most recent call last):
>> File "/home/svn_tools/mailer.py", line 797, in ?
>> author, propname)
>> File
>> "/usr/src/build/554293-i386/install/usr/lib/python2.3/site-packages/svn/core.py",
>> line 33, in run_app
>> File "/home/svn_tools/mailer.py", line 37, in main
>> repos = Repository(repos_dir, rev, pool)
>> File "/home/svn_tools/mailer.py", line 601, in __init__
>> self.root_this = self.get_root(rev)
>> File "/home/svn_tools/mailer.py", line 613, in get_root
>> root = self.roots[rev] = svn.fs.revision_root(self.fs_ptr, rev,
>> self.pool)
>> libsvn._core.SubversionException: ('No such revision 11', 160006)
>> And I couldnt find any help from internet.
>> BTW:
>> svnadmin
>> svnadmin, version 1.6.2 (r37639)
>> compiled May 15 2009, 12:58:28
>> svn
>> svn, version 1.5.1 (r32289)
>> compiled Oct 6 2008, 12:54:52
>>
>
>
>

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2364401

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-06-23 07:35:51 CEST

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