I'm having some trouble with fsfs repositories and 'svnlook diff' --
with this pre-commit hook:
--------------------
#!/bin/sh
# PRE-COMMIT HOOK
[snipped comments]
REPOS="$1"
TXN="$2"
# Make sure that the log message contains some text.
SVNLOOK=/usr/local/bin/svnlook
$SVNLOOK diff -t "$TXN" "$REPOS" >> /tmp/pre-commit.log 2>&1
# All checks passed, so allow the commit.
exit 0
--------------------
I get this output:
--------------------
[root@dragon trwc]# svn commit -m "test2"
Sending test
Transmitting file data .
Committed revision 3.
[root@dragon trwc]# cat /tmp/pre-commit.log
subversion/svnlook/main.c:1299: (apr_err=160006)
svn: Transaction '2-1' is not based on a revision; how odd
[root@dragon trwc]#
--------------------
The problem seems to be that base_revision is always -1 for transactions
(as returned by the call to svn_fs_txn_base_revision at line 1296 in
svnlook/main.c) . Is there something else that needs to be done for
fsfs repositories? This works on my bdb repositories.
DJ
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Jun 9 03:14:24 2004