Re: Is svnadmin load affected by hooks?

2018-03-29 Thread Eric Johnson
Hi Bo, On Thu, Mar 29, 2018 at 2:29 PM, Bo Berglund wrote: > On Thu, 29 Mar 2018 10:23:34 -0700, Eric Johnson > wrote: > >On Wed, Mar 28, 2018 at 8:17 PM, Bo Berglund > wrote: > > > >If you're dumping into an empty repository, that typically resets the > >repository UUID to match that of the d

Re: Is svnadmin load affected by hooks?

2018-03-29 Thread Bo Berglund
;svnadmin load takes the options "--use-pre-commit-hook" and >"--use-post-commit-hook". Assuming you're using your post-commit hook to >trigger the calls to sync, you could pass that flag. That seems weird to >me, though, in that such an approach would trigger a sync

Re: Is svnadmin load affected by hooks?

2018-03-29 Thread Eric Johnson
Hi Bo, On Wed, Mar 28, 2018 at 8:17 PM, Bo Berglund wrote: > When I load a dump into an empty repo, will the operation be affected > by the hooks I have already set up for svnsync? > If you're dumping into an empty repository, that typically resets the repository UUID to mat

Is svnadmin load affected by hooks?

2018-03-28 Thread Bo Berglund
When I load a dump into an empty repo, will the operation be affected by the hooks I have already set up for svnsync? I have created dumpfiles for all 9 repos I want to sync, and now I am about to load these into the repos I had prepared for sync when I discovered that network problems interfered

Re: svnserve not reading hooks-env?

2016-11-10 Thread Stefan Sperling
On Thu, Nov 10, 2016 at 08:12:11PM +, Steven Simpson wrote: > On 10/11/16 16:40, Stefan Sperling wrote: > > This looks like a bug where svnserve forgets about applying > > a hook environment config after opening the repository. > > So hooks always run in an empty envi

Re: svnserve not reading hooks-env?

2016-11-10 Thread Steven Simpson
On 10/11/16 16:40, Stefan Sperling wrote: This looks like a bug where svnserve forgets about applying a hook environment config after opening the repository. So hooks always run in an empty environment with svnserve. Ooops. I'm amazed it took so long for someone to notice :-) This shoul

Re: svnserve not reading hooks-env?

2016-11-10 Thread Stefan Sperling
On Thu, Nov 10, 2016 at 02:56:26PM +, Steven Simpson wrote: > I'm starting to think that hooks-env with svnserve is a documented > unfeature. ;-) I don't see it in the 1.7 docs, but it is in 1.8: > > <http://svnbook.red-bean.com/en/1.8/svn.s

Re: svnserve not reading hooks-env?

2016-11-10 Thread Steven Simpson
Hi Stefan, On 10/11/16 00:07, Stefan wrote: On 11/10/2016 00:45, Steven Simpson wrote: PROBLEM: When attempting to commit via SSH, I get errors from my scripts indicating that they haven't found the REPOWEBMAN_CONFIG setting, so they fail, and the commit fails. HTTPS-invoked hooks work

Re: svnserve not reading hooks-env?

2016-11-09 Thread Stefan
ervice/svn-authz.conf > SVNHooksEnv /etc/forge/svn-hooks-env.ini > > The latter contains: > > [default] > LANG=en_GB.UTF-8 > PATH=/usr/bin:/bin > REPOWEBMAN_CONFIG=/etc/forge/repowebman.ini > > $REPOWEBMAN_CONFIG is critical to invoking hooks, and they appear t

svnserve not reading hooks-env?

2016-11-09 Thread Steven Simpson
Hi, I have a server set up to access multiple repositories via HTTPS and SSH. The Apache configuration points to the path-based authorization file and the hook environment: AuthzSVNAccessFile /var/forge/service/svn-authz.conf SVNHooksEnv /etc/forge/svn-hooks-env.ini The latter contains

Re: Apache 2.4, Worker MPM, SVN 1.7.20, MOD_DAV_SVN and Post-Commit Hooks

2016-02-15 Thread Philip Martin
Steffen Moser writes: > On 2/14/16 3:34 PM, Daniel Shahaf wrote: >> For future reference, you can run tests over ssl by passing USE_SSL=1 to >> davautocheck, see comments in subversion/tests/cmdline/davautocheck.sh. > > Thank you very much for this information. That's good to know! Added in 1.8,

Re: Apache 2.4, Worker MPM, SVN 1.7.20, MOD_DAV_SVN and Post-Commit Hooks

2016-02-15 Thread Steffen Moser
On 2/14/16 3:34 PM, Daniel Shahaf wrote: > Steffen Moser wrote on Fri, Feb 12, 2016 at 17:24:16 +0100: >> After learning this, I had a look at the HTTPS part of my site-specific >> Apache configuration (/etc/apache2/2.4/sites.d/...). There I found a >> strange configuration line: >> >> SSLCryptoD

Re: Apache 2.4, Worker MPM, SVN 1.7.20, MOD_DAV_SVN and Post-Commit Hooks

2016-02-14 Thread Daniel Shahaf
Steffen Moser wrote on Fri, Feb 12, 2016 at 17:24:16 +0100: > After learning this, I had a look at the HTTPS part of my site-specific > Apache configuration (/etc/apache2/2.4/sites.d/...). There I found a > strange configuration line: > > SSLCryptoDevice pkcs11 For future reference, you can run

Re: Apache 2.4, Worker MPM, SVN 1.7.20, MOD_DAV_SVN and Post-Commit Hooks

2016-02-12 Thread Steffen Moser
Hi Philip, On 2/12/16 2:19 AM, Philip Martin wrote: > Steffen Moser writes: > >> | Running tests in commit_tests.py [43/84]..success > > One of the tests in commit_tests.py is 'hook_test' which runs start-, > pre- and post- hooks. So it

Re: Apache 2.4, Worker MPM, SVN 1.7.20, MOD_DAV_SVN and Post-Commit Hooks

2016-02-11 Thread Philip Martin
Steffen Moser writes: > | Running tests in commit_tests.py [43/84]..success One of the tests in commit_tests.py is 'hook_test' which runs start-, pre- and post- hooks. So it appears that your build can run hooks. Not clear why you get a hang in your normal

Re: Apache 2.4, Worker MPM, SVN 1.7.20, MOD_DAV_SVN and Post-Commit Hooks

2016-02-11 Thread Steffen Moser
On 02/11/2016 12:01 PM, Philip Martin wrote: > Philip Martin writes: > >> You could try building more recent APR/Apache/Subversion. > > Since you are already building Subversion you could try running > Subversion's regression tests for Apache worker: > > make davautocheck CLEANUP=1 PARALLEL=1

Re: Apache 2.4, Worker MPM, SVN 1.7.20, MOD_DAV_SVN and Post-Commit Hooks

2016-02-11 Thread Steffen Moser
Hi Philip, thank you very much for your fast reply! On 02/11/2016 11:41 AM, Philip Martin wrote: > Steffen Moser writes: > >> So my questions to you are: >> >> 1) Are there any known multi-threading problems with the combination >> Apache 2.4 MPM Worker, SV

Re: Apache 2.4, Worker MPM, SVN 1.7.20, MOD_DAV_SVN and Post-Commit Hooks

2016-02-11 Thread Philip Martin
Philip Martin writes: > You could try building more recent APR/Apache/Subversion. Since you are already building Subversion you could try running Subversion's regression tests for Apache worker: make davautocheck CLEANUP=1 PARALLEL=1 APACHE_MPM=worker -- Philip

Re: Apache 2.4, Worker MPM, SVN 1.7.20, MOD_DAV_SVN and Post-Commit Hooks

2016-02-11 Thread Philip Martin
Steffen Moser writes: > So my questions to you are: > > 1) Are there any known multi-threading problems with the combination > Apache 2.4 MPM Worker, SVN 1.7.x, MOD_DAV_SVN and hooks? I would expect it to work although we do not get many reports of Subversion on Solaris so it is po

Apache 2.4, Worker MPM, SVN 1.7.20, MOD_DAV_SVN and Post-Commit Hooks

2016-02-10 Thread Steffen Moser
process hangs whenever I want so commit a file to one of my repositories, but this problem only occurs as long as a "post-commit" hook is defined. Maybe other kinds of hooks are affected as well, I haven't tried them, yet. It seems for my that "mod_dav_svn" itself m

Re: svn (un)lock commands succeed when pre-(un)lock hooks fail on svn 1.9

2015-08-22 Thread Gustavo Chaves
0 (Sat, 22 Aug 2015) $ svn unlock file.txt 'file.txt' unlocked. Now, with a failing hook: $ mv ../repo/hooks/pre-lock- ../repo/hooks/pre-lock $ svn lock file.txt svn: warning: W165001: Lock blocked by pre-lock hook (exit code 255) with no output. $ echo $? 0 $ svn info file.txt|grep Lock

RE: svn (un)lock commands succeed when pre-(un)lock hooks fail on svn 1.9

2015-08-22 Thread bert
Chaves Sent: zaterdag 22 augustus 2015 22:02 To: users@subversion.apache.org Subject: svn (un)lock commands succeed when pre-(un)lock hooks fail on svn 1.9 Hi there, It seems that svn 1.9 changed the behaviour of the "svn lock" and the "svn unlock" commands with regard

svn (un)lock commands succeed when pre-(un)lock hooks fail on svn 1.9

2015-08-22 Thread Gustavo Chaves
Hi there, It seems that svn 1.9 changed the behaviour of the "svn lock" and the "svn unlock" commands with regards to the fate of the corresponding pre-lock/pre-unlock hooks. Up to svn 1.8, when those hooks failed (exit code != 0) the commands (svn lock/unlock) failed too.

Re: add hooks to repo

2015-06-19 Thread Johan Corveleyn
On Fri, Jun 19, 2015 at 12:00 AM, Andreas Stieger wrote: > Hello, > > On 18/06/15 20:26, Bill McCormick wrote: >> I have an existing repository and I'd like to be able to rev control >> hooks for the repo ... in the repo. Is there an easy way to do this? > &g

Re: add hooks to repo

2015-06-18 Thread Andreas Stieger
Hello, On 18/06/15 20:26, Bill McCormick wrote: > I have an existing repository and I'd like to be able to rev control > hooks for the repo ... in the repo. Is there an easy way to do this? No. Hooks live in the on-disk repository tree, not inside the versioned file system. There is

add hooks to repo

2015-06-18 Thread Bill McCormick
I have an existing repository and I'd like to be able to rev control hooks for the repo ... in the repo. Is there an easy way to do this? I'm running svn 1.8.13 on Ubuntu 12.10. Thanks! -Bill

Thanks a lot : Problem does not occure in other environment AW: File checkin hook work; http checkin hooks don't work : AW: SELInux disabled !AW: Problem with subversion hooks scripts under Linux Apac

2014-06-30 Thread Korte, Michael Johannes
Hello Philip Martin and Nico Kadel-Gracia, thanks a lot for your support. It seems that it was really a problem. I tried the hooks (unchanged as I have saved them inbetween in subversion) today at a different machine (with more memory) and there all hook scripts work perfect. The Apache WebDav

Re: File checkin hook work; http checkin hooks don't work : AW: SELInux disabled !AW: Problem with subversion hooks scripts under Linux Apache Dav

2014-06-28 Thread Nico Kadel-Garcia
ort für »michael.korte«: > Sende Test_commit.txt > Ãbertrage Daten . > Revision 308 übertragen. > > Warnung: Failed to start '/var/subversion/repos17/sbox/hooks/post-commit' hook > > It seems that the hook script can not be executed, when it is started

Re: File checkin hook work; http checkin hooks don't work : AW: SELInux disabled !AW: Problem with subversion hooks scripts under Linux Apache Dav

2014-06-27 Thread David Chapman
ragen. Warnung: Failed to start '/var/subversion/repos17/sbox/hooks/post-commit' hook It seems that the hook script can not be executed, when it is started via apache server, if it has execute permission and owner www-data. Is there any possibility to specify that apache can execut

Re: File checkin hook work; http checkin hooks don't work : AW: SELInux disabled !AW: Problem with subversion hooks scripts under Linux Apache Dav

2014-06-27 Thread Philip Martin
"Korte, Michael Johannes" writes: > Warnung: Failed to start '/var/subversion/repos17/sbox/hooks/post-commit' hook > > It seems that the hook script can not be executed, when it is started > via apache server, if it has execute permission and owner www-data.

File checkin hook work; http checkin hooks don't work : AW: SELInux disabled !AW: Problem with subversion hooks scripts under Linux Apache Dav

2014-06-27 Thread Korte, Michael Johannes
ctory:/tmp/Michael/co_http/sbox/trunk/trunk# svn ci -m "aaa" Anmeldebereich: <http://172.25.22.94:80> Subversion Sandbox Repository Passwort für »michael.korte«: Sende Test_commit.txt Ãbertrage Daten . Revision 308 übertragen. Warnung: Failed to start '/var/subversion

AW: SELInux disabled !AW: Problem with subversion hooks scripts under Linux Apache Dav

2014-06-27 Thread Korte, Michael Johannes
ssful and all following failed with "failed to start ... hook" - Once two or three commits were successful and only then all following failed with " failed to start ... hook" After it failed a couple of times, I changed the hooks script and then I changed the hook scrip

Re: SELInux disabled !AW: Problem with subversion hooks scripts under Linux Apache Dav

2014-06-26 Thread Nico Kadel-Garcia
Ursprüngliche Nachricht- > Von: Nico Kadel-Garcia [mailto:nka...@gmail.com] > Gesendet: Donnerstag, 26. Juni 2014 13:47 > An: Korte, Michael Johannes > Cc: users@subversion.apache.org; Kocsis, Zoltan; Seelaender, Robin; von > Schoenebeck, Florian > Betreff: Re: Problem with

SELInux disabled !AW: Problem with subversion hooks scripts under Linux Apache Dav

2014-06-26 Thread Korte, Michael Johannes
Michael Johannes Cc: users@subversion.apache.org; Kocsis, Zoltan; Seelaender, Robin; von Schoenebeck, Florian Betreff: Re: Problem with subversion hooks scripts under Linux Apache Dav On Thu, Jun 26, 2014 at 4:20 AM, Korte, Michael Johannes wrote: > Hello all, > > > > I have a ve

Re: Problem with subversion hooks scripts under Linux Apache Dav

2014-06-26 Thread Nico Kadel-Garcia
problem occurs also for all other hook scripts, no difference > what I use as content of the script. > > > > Let me explain my problem: > > > > I used a Tortoise Client on a remote Windows machine and tried there a > commit. I always got the error message: > &

Problem with subversion hooks scripts under Linux Apache Dav

2014-06-26 Thread Korte, Michael Johannes
achine and tried there a commit. I always got the error message: Failed to start '/var/subversion/repos17/sbox/hooks/post-commit' hook I tried all possible changes at my hook script and at the end it consists only of the following two lines: #!/bin/sh /bin/echo "Dies ist ein Test

Post commit hooks: how to parse $ sign

2014-05-16 Thread Kamil Libich
Hi I have a hidden share on the server \\BBDD\AAA$ and the post-commit hook looks like: "C:\Program Files\VisualSVN Server\bin\svn.exe" co https://BBDD/svn/Development/ABC -r HEAD "\\BBDD\AAA$\PROD\MFG\" --password xXxXxXxXx svn.exe cannot resolve the path when the $ sign is used. When I use an

Re: Issue with pre-commit hooks in Subversion 1.7.7

2014-01-30 Thread Ryan Schmidt
On Jan 29, 2014, at 22:18, Ramachandran Raghavendran wrote: > I’m using Subversion 1.7.7 on windows with hooks written in python 2.7.2 > > I’m running SVNLOOK commands in my pre-commit hook with the syntax as folow > svnlook log -t commit_txn REPOS_PATH > > I’m abl

Issue with pre-commit hooks in Subversion 1.7.7

2014-01-29 Thread Ramachandran Raghavendran
Hi, I'm using Subversion 1.7.7 on windows with hooks written in python 2.7.2 I'm running SVNLOOK commands in my pre-commit hook with the syntax as folow svnlook log -t commit_txn REPOS_PATH I'm able to trap and echo the txn number in the hook but the svnlook fails with

RE: URL based commands not working in hooks\

2013-02-04 Thread Bert Huijben
Usually you shouldn't use 'svn log' from a hook. When using hooks you want to use the 'svnlook' command instead of 'svn' as you are looking directly at a transaction in progress. (And 'svnlook log' is more efficient than using the server

Re: URL based commands not working in hooks\

2013-02-04 Thread shrinivasan
> I have a hook that runs svn log. Do you redirect the svn log to any file? Share the hook script here. Regards, Shrini CollabNet Support

URL based commands not working in hooks\

2013-02-04 Thread Ramachandran Raghavendran
Hi, I have a hook that runs svn log. My VisualSVN server is set up to run on Windows authentication. When I do a commit, svn log command doesn't at all. The event log says the following Could not MERGE resource "/svn/Test/!svn/txn into [409, #0] Can you help me what coul

Re: AW: New to subversion, need to find documentation on writing hooks

2012-05-22 Thread Michael Diers
em were used at one of my former > employers place. At another former employers place, we used post-commit hooks > triggering a self-written python daemon which ran appropriate scons build > files. And AFAIR, Microsoft also provides some auto-build solution for VSS or > TFS. >

AW: New to subversion, need to find documentation on writing hooks

2012-05-21 Thread Markus Schaber
ttp://www.cruisecontrolnet.org/ - both of them were used at one of my former employers place. At another former employers place, we used post-commit hooks triggering a self-written python daemon which ran appropriate scons build files. And AFAIR, Microsoft also provides some auto-build solution

Re: New to subversion, need to find documentation on writing hooks

2012-05-21 Thread Les Mikesell
On Mon, May 21, 2012 at 6:52 PM, Blair Zajac wrote: > >>> $ java -jar jenkins.war >> >> >> Since he mentioned ubuntu earlier, it is probably even easier to go >> with the packaged version: >> https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+Ubuntu >> after which the system will kn

Re: New to subversion, need to find documentation on writing hooks

2012-05-21 Thread Blair Zajac
On 05/21/2012 03:11 PM, Les Mikesell wrote: On Mon, May 21, 2012 at 4:56 PM, David Weintraub wrote: Jenkins is pretty simple on the surface to setup. Simply download the Jenkins "war" file, install a Java JDK if you don't have one installed, and run the following command: $ java -jar jenkins.

Re: New to subversion, need to find documentation on writing hooks

2012-05-21 Thread Les Mikesell
On Mon, May 21, 2012 at 4:56 PM, David Weintraub wrote: > > Jenkins is pretty simple on the surface to setup. Simply download the > Jenkins "war" file, install a Java JDK if you don't have one > installed, and run the following command: > > $ java -jar jenkins.war Since he mentioned ubuntu earlie

Re: New to subversion, need to find documentation on writing hooks

2012-05-21 Thread David Weintraub
On Mon, May 21, 2012 at 6:08 AM, Ted Byers wrote: > I have never heard of jenkins.  What more can you tell me about it? Jenkins is a Continuous Integration system. Continuous Integration means every time sone one changes the code, you automatically build the changes. This at least proves that th

Re: New to subversion, need to find documentation on writing hooks

2012-05-21 Thread Les Mikesell
On Mon, May 21, 2012 at 5:50 AM, Ted Byers wrote: > > Actually, I had never heard of Hudson either; except in reference to the > famous explorer of the Canadian north, and the bay due north of Ontario, in > the eastern Canadian arctic, named for him. > > Thanks for the links, though, as that gives

RE: New to subversion, need to find documentation on writing hooks

2012-05-21 Thread Ted Byers
> -Original Message- > From: Cooke, Mark [mailto:mark.co...@siemens.com] > Sent: May-21-12 6:13 AM > To: Ted Byers; 'Les Mikesell' > Cc: users@subversion.apache.org > Subject: RE: New to subversion, need to find documentation on writing hooks > > > ---

Re: New to subversion, need to find documentation on writing hooks

2012-05-21 Thread Thorsten Schöning
for you. If you already have tests you really should consider to use one of the CI-plattforms and not reinvent the wheel using hooks. Hudson is pretty easy to setup and configure. http://en.wikipedia.org/wiki/Continuous_integration http://en.wikipedia.org/wiki/Hudson_(software) http://en.wikipedia.

RE: New to subversion, need to find documentation on writing hooks

2012-05-21 Thread Cooke, Mark
> -Original Message- > From: Ted Byers [mailto:r.ted.by...@gmail.com] > Sent: 21 May 2012 11:09 > To: 'Les Mikesell' > Cc: users@subversion.apache.org > Subject: RE: New to subversion, need to find documentation on > writing hooks > > > &g

RE: New to subversion, need to find documentation on writing hooks

2012-05-21 Thread Ted Byers
> -Original Message- > From: Les Mikesell [mailto:lesmikes...@gmail.com] > Sent: May-21-12 12:58 AM > To: Ted Byers > Cc: users@subversion.apache.org > Subject: Re: New to subversion, need to find documentation on writing hooks > > On Sun, May 20, 2012 at 4

Re: New to subversion, need to find documentation on writing hooks

2012-05-20 Thread Les Mikesell
On Sun, May 20, 2012 at 4:16 PM, Ted Byers wrote: > I have read arguments that recommend > against this, claiming it can slow down commits, but then I am more > concerned about code quality, and always having a codebase, which to me > includes all tests, that compiles and runs properly than I am

Re: New to subversion, need to find documentation on writing hooks

2012-05-20 Thread David Chapman
On 5/20/2012 2:16 PM, Ted Byers wrote: I have just installed subversion on a Ubuntu VM, and trying to learn how to administer both. I have successfully created my first VN repository. :-) Now, I have read through the documentation a couple times, and know what hooks are and why they&#x

Re: New to subversion, need to find documentation on writing hooks

2012-05-20 Thread Ryan Schmidt
On May 20, 2012, at 16:16, Ted Byers wrote: > I have just installed subversion on a Ubuntu VM, and trying to learn how to > administer both. I have successfully created my first VN repository. :-) > > Now, I have read through the documentation a couple times, and know what >

New to subversion, need to find documentation on writing hooks

2012-05-20 Thread Ted Byers
I have just installed subversion on a Ubuntu VM, and trying to learn how to administer both. I have successfully created my first VN repository. :-) Now, I have read through the documentation a couple times, and know what hooks are and why they're used, but I am not clear on how to writ

Subversion 1.6.17 srpm compatible with RHEL 4, 5, and 6 hooks at github

2012-04-04 Thread Nico Kadel-Garcia
For anyone, like me, who's wanted a clean RHEL 4 compatible subversion 1.6.17, with source code, to build RPM's with and have consistent versions with other Red Hat releases, I present: https://github.com/nkadel/subversion-1.6.17-srpm It's only tested in a few Scientific Linux 4, 5, and 6 environ

Re: Add generic MOTD to hooks scripts ?

2012-03-22 Thread Nico Kadel-Garcia
On Wed, Mar 21, 2012 at 7:12 AM, Phil Pinkerton wrote: > Looking for a way to send or display a Notice like a MOTD ( Message of the > day ) whenever any repository is accessed. > > For example there will be a major change in Repository locations. Some > projects already have pre and post commit ho

Re: Add generic MOTD to hooks scripts ?

2012-03-21 Thread Ryan Schmidt
ed and propagated to all > repository hook directories > > Ideas ? Suggestions ( besides read the book ) Sorry, not a feature present in Subversion. a) there are no hooks that are run when the repository is merely accessed (only hooks that run when the repository is modified); b) ther

Add generic MOTD to hooks scripts ?

2012-03-21 Thread Phil Pinkerton
Looking for a way to send or display a Notice like a MOTD ( Message of the day ) whenever any repository is accessed. For example there will be a major change in Repository locations. Some projects already have pre and post commit hook scripts. What I want to do is advise the user who accesses

Re: commit hooks - is there a hook which is called after commit even if its not successful

2012-03-06 Thread Trent Nelson
s depending on the commit size. This was added in r1240856: http://svn.apache.org/viewvc?view=revision&revision=1240856 Post commit hooks will now be invoked with the pre-commit's txn name. Do your preparation during pre-commit, persist it in some way, keyed by the txn name, then a

Re: commit hooks - is there a hook which is called after commit even if its not successful

2012-02-23 Thread Andreas Krey
iry check in the post-commit trigger; you may also look at the (monotonical) revision number. I don't expect there to be a guarantee that there is only ever one set of hooks (pre-hook/commit/post-hook) running, so you need to deal with multiple work sets anyway. Andreas -- "Totally triv

Re: commit hooks - is there a hook which is called after commit even if its not successful

2012-02-23 Thread Torsten Krah
Am Donnerstag, den 23.02.2012, 11:16 +0100 schrieb Stephen Butler: > Why not do 1 & 3 in a post-commit hook? In pre-commit things are already needed to be parsed to check if the commit itself is allowed. When doing those checks things can be prepared too for the external system - 2 in 1 ;-). So th

Re: commit hooks - is there a hook which is called after commit even if its not successful

2012-02-23 Thread Stephen Butler
On Feb 23, 2012, at 10:44 , Torsten Krah wrote: > Am Mittwoch, den 22.02.2012, 14:53 -0500 schrieb Andy Levy: >> Can pre-commit clean up after itself, so that the environment is clean >> regardless of the result of the commit? > > Hm no, the action should do some work (external system) and does

Re: How to recognize commit failure via hooks

2012-02-23 Thread Daniel Shahaf
Lars Klonowski wrote on Thu, Feb 23, 2012 at 10:42:40 +0100: > The post-commit hook gets a revision parameter and I don't see a > possibility how to determine which transaction it came from. This has been implemented for 1.8.0: http://subversion.apache.org/docs/release-notes/1.8

How to recognize commit failure via hooks

2012-02-23 Thread Lars Klonowski
, the elements stay locked. The application now has to decide if it is just a lengthy commit or if it failed and the locks have to be released. So is there any possibility to notify the application about the commit failure via hooks? Or has anyone ever dealt with triggering database changes bas

Re: commit hooks - is there a hook which is called after commit even if its not successful

2012-02-23 Thread Torsten Krah
Am Mittwoch, den 22.02.2012, 14:53 -0500 schrieb Andy Levy: > Can pre-commit clean up after itself, so that the environment is clean > regardless of the result of the commit? Hm no, the action should do some work (external system) and does need to know if commit was successful or if it failed. At

Re: commit hooks - is there a hook which is called after commit even if its not successful

2012-02-22 Thread Philip Martin
Mark Phippard writes: > On Wed, Feb 22, 2012 at 2:49 PM, Torsten Krah > wrote: > >> If commit can not fail - for which ever reason - why the doc does state that >> the hook does only run if the commit is actual successful? >> So it is possible to fail or not? > > Commits can fail. A common reas

Re: commit hooks - is there a hook which is called after commit even if its not successful

2012-02-22 Thread Mark Phippard
On Wed, Feb 22, 2012 at 2:49 PM, Torsten Krah wrote: > If commit can not fail - for which ever reason - why the doc does state that > the hook does only run if the commit is actual successful? > So it is possible to fail or not? Commits can fail. A common reason would be that a file included in

Re: commit hooks - is there a hook which is called after commit even if its not successful

2012-02-22 Thread Andy Levy
On Wed, Feb 22, 2012 at 14:49, Torsten Krah wrote: > Am 22.02.2012 18:27, schrieb Ryan Schmidt: > >> >> On Feb 22, 2012, at 09:23, Torsten Krah wrote: >> >>> the http://svnbook.red-bean.com/en/1.6/svn.ref.reposhooks.html book >>> tells about the various

Re: commit hooks - is there a hook which is called after commit even if its not successful

2012-02-22 Thread Torsten Krah
Am 22.02.2012 18:27, schrieb Ryan Schmidt: On Feb 22, 2012, at 09:23, Torsten Krah wrote: the http://svnbook.red-bean.com/en/1.6/svn.ref.reposhooks.html book tells about the various post-* hooks. But those one are called on "successfull" operations. Whats the way to implement a hook

Re: commit hooks - is there a hook which is called after commit even if its not successful

2012-02-22 Thread Ryan Schmidt
On Feb 22, 2012, at 09:23, Torsten Krah wrote: > the http://svnbook.red-bean.com/en/1.6/svn.ref.reposhooks.html book > tells about the various post-* hooks. > But those one are called on "successfull" operations. > Whats the way to implement a hook, which is called after

commit hooks - is there a hook which is called after commit even if its not successful

2012-02-22 Thread Torsten Krah
Hi, the http://svnbook.red-bean.com/en/1.6/svn.ref.reposhooks.html book tells about the various post-* hooks. But those one are called on "successfull" operations. Whats the way to implement a hook, which is called after commit - it does not matter if successful or failed - the hook mu

Re: svnlook changed - howto see all deleted files in pre-/post-commit hooks

2011-08-12 Thread Ryan Schmidt
On Aug 12, 2011, at 11:01, Jan Ciesko (GMAIL) wrote: > What I was wondering though: if I commit a delete and run any svn command on > the REV-1 version in the post-commit hook, is it guaranteed that in the > meantime no other commits were run, thus making REV-1 invalid? > Or in other words: pre-

Re: svnlook changed - howto see all deleted files in pre-/post-commit hooks

2011-08-12 Thread Jan Ciesko (GMAIL)
Thanks Ryan and David for the info, that solved my problem. (I inspect the tree in a post-commit in the previous revision where the deleted files were still present.) What I was wondering though: if I commit a delete and run any svn command on the REV-1 version in the post-commit hook, is it g

Re: svnlook changed - howto see all deleted files in pre-/post-commit hooks

2011-08-04 Thread Ryan Schmidt
On Aug 3, 2011, at 08:14, Jan Ciesko (GMAIL) wrote: > I'd like to ask if there is a way to see which particular files have been > deleted when a directory deletion has been commited. > > Example: > > I add to a repository BAR/Apps the folder Jacobi. With "svnlook changed > "$REPOS"" in the po

svnlook changed - howto see all deleted files in pre-/post-commit hooks

2011-08-03 Thread Jan Ciesko (GMAIL)
Dear SVN-experts, I'd like to ask if there is a way to see which particular files have been deleted when a directory deletion has been commited. Example: I add to a repository BAR/Apps the folder Jacobi. With "svnlook changed "$REPOS"" in the post-commit hook I get the output: A BAR/Apps/

svnlook changed - howto see all deleted files in pre-/post-commit hooks

2011-08-03 Thread Jan Ciesko (GMAIL)
Dear SVN-experts, I'd like to ask if there is a way to see which particular files have been deleted when a directory deletion has been commited. Example: I add to a repository BAR/Apps the folder Jacobi. With "svnlook changed "$REPOS"" in the post-commit hook I get the output: A BAR/Apps/

Re: Apache is exposing my Subversion repository internals (e.g. conf, db, hooks, etc.)

2011-06-24 Thread Joshua Davies
y projects listed, along with the Subversion repository > > internals: > > > > > > repos - Revision 64: / > > > > > >- Project1 > > >- README.txt <https://dev01.2xoffice.com/repos/README.txt> > > >- conf/ <https://dev01

Re: Apache is exposing my Subversion repository internals (e.g. conf, db, hooks, etc.)

2011-06-24 Thread Andy Levy
README.txt> >> >    - conf/ <https://dev01.2xoffice.com/repos/conf/> >> >    - db/ <https://dev01.2xoffice.com/repos/db/> >> >    - format <https://dev01.2xoffice.com/repos/format> >> >    - hooks/ <https://dev01.2xoffice.com/repos/hooks

RE: Apache is exposing my Subversion repository internals (e.g. conf, db, hooks, etc.)

2011-06-24 Thread Bob Archer
fice.com/repos/conf/> > >    - db/ <https://dev01.2xoffice.com/repos/db/> > >    - format <https://dev01.2xoffice.com/repos/format> > >    - hooks/ <https://dev01.2xoffice.com/repos/hooks/> > >    - P <https://dev01.2xoffice.com/repos/integration/>roject2

Re: Apache is exposing my Subversion repository internals (e.g. conf, db, hooks, etc.)

2011-06-24 Thread Stefan Sperling
On Fri, Jun 24, 2011 at 06:26:25PM +0200, Stefan Sperling wrote: > On Fri, Jun 24, 2011 at 11:05:32AM -0500, Joshua Davies wrote: > It's a wild guess, but maybe you didn't load mod_dav_svn into Apache? I guessed wrong :) Andy's explanation makes a lot more sense.

Re: Apache is exposing my Subversion repository internals (e.g. conf, db, hooks, etc.)

2011-06-24 Thread Joshua Davies
/ > > > >- Project1 > >- README.txt <https://dev01.2xoffice.com/repos/README.txt> > >- conf/ <https://dev01.2xoffice.com/repos/conf/> > >- db/ <https://dev01.2xoffice.com/repos/db/> > >- format <https://dev01.2xoffice.com/repos/fo

Re: Apache is exposing my Subversion repository internals (e.g. conf, db, hooks, etc.)

2011-06-24 Thread Andy Levy
ry installed under "/var/svn/repos": > > [jdavies@hostname repos]$ pwd > /var/svn/repos > [jdavies@hostname repos]$ ls > README.txt  conf  dav  db  format  hooks  locks > I want to expose this over HTTP, so I've added the following to my Apache > config: > >   DA

Re: Apache is exposing my Subversion repository internals (e.g. conf, db, hooks, etc.)

2011-06-24 Thread Stefan Sperling
> repos - Revision 64: / > >- Project1 >- README.txt <https://dev01.2xoffice.com/repos/README.txt> >- conf/ <https://dev01.2xoffice.com/repos/conf/> >- db/ <https://dev01.2xoffice.com/repos/db/> > - format <https://dev01.2xoffice.com/repos/format>

Apache is exposing my Subversion repository internals (e.g. conf, db, hooks, etc.)

2011-06-24 Thread Joshua Davies
wd /var/svn/repos [jdavies@hostname repos]$ ls README.txt conf dav db format hooks locks I want to expose this over HTTP, so I've added the following to my Apache config: DAV svn SVNPath /var/svn/repos AuthType Basic AuthName "Subversion Repository" AuthUserFile /p

svnsync and hooks on the mirror

2011-06-08 Thread Nathan Weyer
master correctly appearing on the mirror. So my question is this: which hooks on the mirror are expected to execute during the process? The pre-commit hook obviously does since that stops anyone other then the svnsync user from committing, but I am not seeing a peep out of the post-commit hook. I

Re: Possible bug in pre-revprop-change and post-revprop-change hooks

2011-05-13 Thread Ryan Schmidt
On May 13, 2011, at 13:38, Aliasgar Ganiji wrote: > This is our setup svn 1.6.6 on Linux x86_64. What if the hooks are broken in > this version? Can someone with this version of svn verify? The hooks seem to be working correctly for me on Mac OS X 10.6.7 x86_64 with Subversion

RE: Possible bug in pre-revprop-change and post-revprop-change hooks

2011-05-13 Thread Aliasgar Ganiji
This is our setup svn 1.6.6 on Linux x86_64. What if the hooks are broken in this version? Can someone with this version of svn verify? --- Ali -Original Message- From: Johan Corveleyn [mailto:jcor...@gmail.com] Sent: Friday, May 13, 2011 12:29 PM To: Aliasgar Ganiji Cc: users

Re: Possible bug in pre-revprop-change and post-revprop-change hooks

2011-05-13 Thread Johan Corveleyn
On Fri, May 13, 2011 at 4:40 PM, Aliasgar Ganiji wrote: > I was in the process of implementing pre-revprop-change and > post-revprop-change hooks in my company to handle changes to the svnn:log > property.  As per the SubVersion Redbook; > > 1.   pre-revprop-change should be

Possible bug in pre-revprop-change and post-revprop-change hooks

2011-05-13 Thread Aliasgar Ganiji
I was in the process of implementing pre-revprop-change and post-revprop-change hooks in my company to handle changes to the svnn:log property. As per the SubVersion Redbook; 1. pre-revprop-change should be able to access the intended new value of the property via standard input

Re: Do commit hooks work with the file:// protocol?

2011-02-11 Thread Daniel Shahaf
Jonathan Reeve wrote on Tue, Feb 08, 2011 at 17:19:54 +: > I want to be able to prevent commits to a repository in some circumstances. > I've set up a local svn repository to test, but my commit hook doesn't get > called. > > I'm using the file:// protoco

RE: Do commit hooks work with the file:// protocol?

2011-02-08 Thread Echlin, Jamie
> There's a transcript of how to reproduce the issue here: > http://stackoverflow.com/questions/4934990/ In your batch file it should be exit 1 Not exit /b 1. /b doesn't set the exit code for cmd.exe so I presume svn never receives the error code. jamie

Re: Do commit hooks work with the file:// protocol?

2011-02-08 Thread Andy Levy
On Tue, Feb 8, 2011 at 12:19, Jonathan Reeve wrote: > I want to be able to prevent commits to a repository in some circumstances. > I've set up a local svn repository to test, but my commit hook doesn't get > called. > > I'm using the file:// protocol. Should hooks

Do commit hooks work with the file:// protocol?

2011-02-08 Thread Jonathan Reeve
I want to be able to prevent commits to a repository in some circumstances. I've set up a local svn repository to test, but my commit hook doesn't get called. I'm using the file:// protocol. Should hooks work with that? There's a transcript of how to reproduce t

Re: SVN Hooks to require log message, limit size and file type

2011-01-12 Thread David Weintraub
On Tue, Jan 11, 2011 at 8:46 PM, David Xie  wrote: > > Hello, > > I am looking for a hook to require log message when commit. I succeded to do > it. > > At the same time, I want to limit size less than 10MB and forbid .zip .7z > .rar file type. > I found some hooks

Re: SVN Hooks to require log message, limit size and file type

2011-01-11 Thread Daniel Becroft
On Wed, Jan 12, 2011 at 11:46 AM, David Xie wrote: > Hello, > > I am looking for a hook to require log message when commit. I succeded to > do it. > > At the same time, I want to limit size less than 10MB and forbid .zip .7z > .rar file type. > I found some hooks from int

SVN Hooks to require log message, limit size and file type

2011-01-11 Thread David Xie
Hello, I am looking for a hook to require log message when commit. I succeded to do it. At the same time, I want to limit size less than 10MB and forbid .zip .7z .rar file type. I found some hooks from internet, tried multi times but all failed. I could always commit big than 10M files and zip

Re: Tortoisesvn hooks and refresh

2011-01-07 Thread Thorsten Schöning
Guten Tag Echlin, Jamie, am Freitag, 7. Januar 2011 um 11:08 schrieben Sie: > Sorry to impose, but would you mind telling me if you received this > message from me via the list yesterday: > http://svn.haxx.se/users/archive-2011-01/0104.shtml At least I got it. Mit freundlichen Grüßen, Thorsten

  1   2   >