Re: Problem on a post-commit hook to change the current author (windows batch)

2013-01-25 Thread Manuel Ferrero
Branko Čibej ha scritto: You are running the svn command-line client from your post-commit hook. If 'svn propget' requires authorization, your hook script will hang waiting for input. That's it. Since the hook script will always have access to the repository, it would be better to use "svnl

Problem on a post-commit hook to change the current author (windows batch)

2013-01-24 Thread Manuel Ferrero
In this discussion a user suggested how to change the commit author using a post-commit hook: http://goo.gl/7dJ4l I'd like to do exacly that, so I wrote a pre-revprop-change hook that checks that allows the change under certain circumstances. I tested and it's working. My problem is that I can't

Re: Problem on a post-commit hook to change the current author (windows batch)

2013-01-24 Thread Branko Čibej
On 24.01.2013 14:38, Manuel Ferrero wrote: > Thorsten Schöning wrote: > >>> The commit is done, but the author isn't changed. >>> It seems top me that the batch file hangs when try to lookup the >>> current >>> user: >>> for /f "delims=" %%a in ('svn propget svn:author --revprop -r %REV% >>> http:/

Re: Problem on a post-commit hook to change the current author (windows batch)

2013-01-24 Thread Manuel Ferrero
Thorsten Schöning wrote: The commit is done, but the author isn't changed. It seems top me that the batch file hangs when try to lookup the current user: for /f "delims=" %%a in ('svn propget svn:author --revprop -r %REV% http://my_server_address') do @set myAuthor=%%a May it be that the clien

Re: Problem on a post-commit hook to change the current author (windows batch)

2013-01-24 Thread Thorsten Schöning
Guten Tag Manuel Ferrero, am Donnerstag, 24. Januar 2013 um 14:03 schrieben Sie: > The commit is done, but the author isn't changed. > It seems top me that the batch file hangs when try to lookup the current > user: > for /f "delims=" %%a in ('svn propget svn:author --revprop -r %REV% > http://my

Problem on a post-commit hook to change the current author (windows batch)

2013-01-24 Thread Manuel Ferrero
In this discussion a user suggested how to change the commit author using a post-commit hook: http://goo.gl/7dJ4l I'd like to do exacly that, so I wrote a pre-revprop-change hook that checks that allows the change under certain circumstances. I tested and it's working. My problem is that I can't m