You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Eric Hanchrow <of...@blarg.net> on 2007/03/27 19:52:09 UTC

Bug, or pilot error? Hooks don't run when checking in via svn+ssh

I have trouble believing this is a bug, but I can't see why it
shouldn't work ... anyway, run this script and observe the "I expect"
output: it looks as if the pre-commit hook runs properly when I check
in via file://, but not when I check in via svn+ssh://.  What am I
failing to understand?  This is with trunk r23938.


Re: Bug, or pilot error? Hooks don't run when checking in via svn+ssh

Posted by Eric Hanchrow <of...@blarg.net>.
Oh, here's the output I see (on Ubuntu 6.06.1 if it matters):
    $ ~/svn-example.sh
    + svn co file://localhost/tmp/repos /tmp/wc1
    Checked out revision 0.
    A         /tmp/wc1/hum-de-dum
    I expect the commit to fail with a message about the pre-commit hook failing.
    Adding         tmp/wc1/hum-de-dum
    Transmitting file data .../svn-live/subversion/libsvn_client/commit.c:867: (apr_err=165001)
    svn: Commit failed (details follow):
    ../svn-live/subversion/libsvn_repos/hooks.c:141: (apr_err=165001)
    svn: 'pre-commit' hook failed (exited with a non-zero exitcode of 1).  No error output was produced by the hook.
    + svn co svn+ssh://localhost/tmp/repos /tmp/wc2
    Checked out revision 0.
    I expect the commit to fail with a message about the pre-commit hook failing.
    I expect to see neither commit in this file:
    Second set of data
    I expect to see two lines that say "I am a hook":
    hi, I am a hook: Tue Mar 27 12:49:36 PDT 2007
-- 
There is such a thing as American-ness.  ... [H]ackers ... come
closest of any group I know to embodying it.  Closer, probably, than
the men running our government.
        -- Paul Graham

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Bug, or pilot error? Hooks don't run when checking in via svn+ssh

Posted by Eric Hanchrow <of...@blarg.net>.
Looks like pilot error indeed -- because the first commit fails, the
second silently does nothing, which explains the behavior I see.
Nothing to see here; move along.
-- 
There is such a thing as American-ness.  ... [H]ackers ... come
closest of any group I know to embodying it.  Closer, probably, than
the men running our government.
        -- Paul Graham

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org