2

We currently use an SVN hook (below) that sends email notification on every commit in the repository. I am looking for a way to limit notifications only to changes that occur in the trunk, excluding tags/branches/etc. Is there a way to create a limit like this using VisualSVNServerHooks.exe?

Current:

"%VISUALSVN_SERVER%\bin\VisualSVNServerHooks.exe" ^
commit-notification "%1" -r %2 ^
--from server@email.com --to emaillist@company.com ^
--smtp-server smtp.company.com

Thanks in advance for any advice.

bahrep
  • 29,961
  • 12
  • 103
  • 150
Dave Shuck
  • 583
  • 1
  • 6
  • 19

1 Answers1

2

The feature will be implemented in upcoming VisualSVN Server 2.6.0.

You can also check this QA thread that has a batch script code that will help you: Post-commit hook that performs an action only if commit affects the specific path.

Community
  • 1
  • 1
bahrep
  • 29,961
  • 12
  • 103
  • 150