andyl
Anything that modifies the repository (aside from a a revprop change) is a commit and fires the post-commit hook script when successful.
So, your script either isn't working the way you think it is, or the action it's taking isn't readily apparent to you.
slyford
All I have the hook do is gather some info via "svnlook" commands, and print them to STDERR for debugging/viewing. If I do something like: create a new folder in my working copy from the trunk, and commit the change, the hook fires exactly as I expect and I see the debug info from STDERR in the popup window. But if I simply copy the /trunk to something like /tags/session1.0 I get no output from the hook at all.
andyl
If you could loan us your crystal ball, we might be able to help more. Mine's in the shop, so I can't see your code. You see nothing obvious in your code - another set of eyeballs may spot the problem immediately.
STDERR is not an appropriate way to return information from post-commit. It may make the client think that the script failed. Write to a logfile or send an email instead. STDERR should be used for errors, not non-error information.
slyford
Well no answer yet so I have additional details to add: * the post-commit hook works just fine if you have: - checked out code to local folder - made any changes (add folder or file) - commit changes from the folder back to the repository * it doesn't seem to fire if: - I'm using the repo browser - I create a new folder, or add a file, via the repo browser - or copy from trunk to tags, for example Why doesn't the post-commit hook fire via the repo browser? Any info would be helpful, thanks.
slyford
Anyone? Still cannot find any info on whether or not actions performed from repo browser are different (i.e. do or do-not fire the post-commit hook) from those in a working copy. Wouldn't any action that rev's the repository be post-commit and execute the hook?
philip
Commits via the repository browser cannot bypass hooks. The most likely explanation is that the hook is running but is not producing the output you expect.
slyford
philip: thanks for the response. That is my guess. Per recommendation from documentation, I have debug info going to STDERR (using Perl for the hook itself, called by .bat file). This works fine if I make & commit changes via working copy. But doing a copy or mkdir via repo browser does NOT yield output. Is there a better method for reading debug output from a post-commit hook?