Re: Issue related to pre-commit hook
Stefan Küng <[email protected]>
| Newsgroups | gmane.comp.version-control.subversion.tortoisesvn.devel |
|---|---|
| Message-ID | <[email protected]> |
On 28.01.2016 10:38, [email protected] wrote: > Simon, > > Yes version 1.7 supports hook, we have applied those for other projects > and its working. > > I am copying contents of pre-commit.cmd file as given below : > > ------------------------------------------------------------------------------------------------------------------------------------------------- > > setlocal > > set REPOS=%1 > > set REV=%2 > > set PATH=c:\python27; > > python.exe "C:\Repositories\Project\hooks\pre-commit-hook.py" %REPOS% %REV% That looks like you're trying a server-side commit hook. In that case, please ask on the svn users list for help. But... > > -------------------------------------------------------------------------------------------------------------------------------------------------- > > And also below are contents of “pre-commit-hook.py” > > """ > > Subversion pre-commit hook which currently checks that the commit > > contains a commit message to avoid commiting empty changesets > > which tortoisesvn seems to have a habbit of committing. Why don't you just set the tsvn:logminsize property on your working copy root or the repo root? Stefan -- ___ oo // \\ "De Chelonian Mobile" (_,\/ \_/ \ TortoiseSVN \ \_/_\_/> The coolest interface to (Sub)version control /_/ \_\ http://tortoisesvn.net ------------------------------------------------------ http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=3157511 To unsubscribe from this discussion, e-mail: [[email protected]].