I'm unable to commit tonight: Sending Doc/lib/libsubprocess.tex Sending Lib/subprocess.py Sending Lib/test/test_subprocess.py Transmitting file data ...svn: Commit failed (details follow): svn: 'pre-commit' hook failed with error output: Traceback (most recent call last): File "/data/repos/projects/hooks/checkwhitespace.py", line 50, in ? run_app(main) File "/usr/lib/python2.3/site-packages/svn/core.py", line 33, in run_app return apply(func, (pool,) + args, kw) File "/data/repos/projects/hooks/checkwhitespace.py", line 32, in main if fs.node_prop(txn_root, path, 'svn:special') == '*': continue TypeError: svn_fs_node_prop() takes exactly 4 arguments (3 given) Any ideas? (CC me, I'm not on the list.) Regards, --- Peter Åstrand ThinLinc Chief Developer Cendio AB http://www.cendio.se Wallenbergs gata 4 583 30 Linköping Phone: +46-13-21 46 00
On 5/26/07, Peter Åstrand <astrand@cendio.se> wrote:
I'm unable to commit tonight:
Sending Doc/lib/libsubprocess.tex Sending Lib/subprocess.py Sending Lib/test/test_subprocess.py Transmitting file data ...svn: Commit failed (details follow): svn: 'pre-commit' hook failed with error output: Traceback (most recent call last): File "/data/repos/projects/hooks/checkwhitespace.py", line 50, in ? run_app(main) File "/usr/lib/python2.3/site-packages/svn/core.py", line 33, in run_app return apply(func, (pool,) + args, kw) File "/data/repos/projects/hooks/checkwhitespace.py", line 32, in main if fs.node_prop(txn_root, path, 'svn:special') == '*': continue TypeError: svn_fs_node_prop() takes exactly 4 arguments (3 given)
Any ideas?
I tried to fix it so you can check in links, but that didn't work. I commented out the change, so you should be able to commit again. n
Neal Norwitz schrieb:
On 5/26/07, Peter Åstrand <astrand@cendio.se> wrote:
I'm unable to commit tonight:
Sending Doc/lib/libsubprocess.tex Sending Lib/subprocess.py Sending Lib/test/test_subprocess.py Transmitting file data ...svn: Commit failed (details follow): svn: 'pre-commit' hook failed with error output: Traceback (most recent call last): File "/data/repos/projects/hooks/checkwhitespace.py", line 50, in ? run_app(main) File "/usr/lib/python2.3/site-packages/svn/core.py", line 33, in run_app return apply(func, (pool,) + args, kw) File "/data/repos/projects/hooks/checkwhitespace.py", line 32, in main if fs.node_prop(txn_root, path, 'svn:special') == '*': continue TypeError: svn_fs_node_prop() takes exactly 4 arguments (3 given)
Any ideas?
I tried to fix it so you can check in links, but that didn't work. I commented out the change, so you should be able to commit again.
Odd... the call worked here (SVN 1.4.3). Which version is the server using? Georg -- Thus spake the Lord: Thou shalt indent with four spaces. No more, no less. Four shall be the number of spaces thou shalt indent, and the number of thy indenting shall be four. Eight shalt thou not indent, nor either indent thou two, excepting that thou then proceed to four. Tabs are right out.
On 5/26/07, Georg Brandl <g.brandl@gmx.net> wrote:
I tried to fix it so you can check in links, but that didn't work. I commented out the change, so you should be able to commit again.
Odd... the call worked here (SVN 1.4.3). Which version is the server using?
I don't know. After some Googling, I found that the call might need to be: if fs.node_prop(txn_root, path, SVN_PROP_MIME_TYPE, 'svn:special') == '*': continue That's a pretty blind guess based on the error message and other random code that I could find. The line above is commented out right now. If I remember and feel like it, I'll try to test this out. n
I don't know. After some Googling, I found that the call might need to be:
if fs.node_prop(txn_root, path, SVN_PROP_MIME_TYPE, 'svn:special') == '*': continue
No. Instead, the missing argument was the apr_pool_t parameter, which was mandatory earlier, and is optional in current releases. The requirement to pass an apr_pool_t is answered by putting the entire logic into a single callback function that expects a pool, and then passing the pool to all API functions as the last parameter. The callback itself is passed to run_app. I have fixed the hook, and tested that it still checks regular .py files, but skips them if they are svn:special. Regards, Martin
Martin v. Löwis schrieb:
Odd... the call worked here (SVN 1.4.3). Which version is the server using?
1.1. Subversion did a grand renaming at some point. I fixed most of the functions when deploying the script, but apparently missed some.
Okay. Is an upgrade planned? I've heard that several actions were sped up significantly with later releases. Georg -- Thus spake the Lord: Thou shalt indent with four spaces. No more, no less. Four shall be the number of spaces thou shalt indent, and the number of thy indenting shall be four. Eight shalt thou not indent, nor either indent thou two, excepting that thou then proceed to four. Tabs are right out.
Georg Brandl schrieb:
Martin v. Löwis schrieb:
Odd... the call worked here (SVN 1.4.3). Which version is the server using? 1.1. Subversion did a grand renaming at some point. I fixed most of the functions when deploying the script, but apparently missed some.
Okay. Is an upgrade planned? I've heard that several actions were sped up significantly with later releases.
I have plans for that. However, these plans may take many months to execute, as one needs to set aside a lot of time to work on the update of www.python.org continuously, to deal with the aftermath of the Debian upgrade, and you also need to have desaster plans, which are difficult with no physical access to the machine (so I need to learn how to get virtual physical access first). Regards, Martin
participants (4)
-
"Martin v. Löwis"
-
Georg Brandl
-
Neal Norwitz
-
Peter Åstrand