How to exclude notifications outside the trunk using post-commit hook with VisualSVNServerHooks.exe?

StackOverflow https://stackoverflow.com/questions/14448558

  •  17-01-2022
  •  | 
  •  

質問

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.

役に立ちましたか?

解決

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.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top