Hello Arnold,

> I've managed to get email notifications working per repository on VisualSVN
> server. However, it is working at the top level of the repository. We may
> have it set up in a less than optimal way:
>
> -Projects_year
>    -Client 1
>       -Project 1
>          -branches
>          -trunk
>          -etc
>       -Project 2
>          -etc
>    -Client 2
>       -Project 1
>          -etc
>       -Project 2
>          -etc
>
> As you can see, setting a post commit hook could send out a lot of
> unnecessary emails. I'd like to add specific paths for emails. In this
> example, I would like to get notified only if someone commits a change in
> the Branch for Project 1. However, I'm struggling with the repo-path
> argument. I understand the commit-notication "%1" specifies the entire
> repository. I've tried the http:// and file://d:/repositories path but I get
> errors about it being a URL rather than a path.

%1 here is the path to the repository on the filesystem. It doesn't
accept an URL.

> It basically boils down to 2 questions:
> 1.) Is it possible to filter the email notifications within any given
> repository

You can use "--filter" option with visualsvnserverhooks.exe hook if
you use VisualSVN Server 2.7 or newer. See the KB article "Configuring
Email Notifications in VisualSVN Server" at
http://www.visualsvn.com/support/topic/00018/

[[
--filter ARG

Send commit-notification email only when commit affects certain
repository path. Use multiple --filter options to specify different
repository paths.

For example: --filter "/MyProject/trunk" --filter "/MyProject/branches"
]]

> 2.) What is the REPO-PATH of any given repository?

Path to the repository where the commit went to. E.g.
"C:\Repositories\MyRepository".

Hope it helps!

--
With best regards,
Pavel Lyalyakin
VisualSVN Team

-- 
You received this message because you are subscribed to the Google Groups 
"VisualSVN" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to visualsvn+unsubscr...@googlegroups.com.
To post to this group, send email to visualsvn@googlegroups.com.
Visit this group at http://groups.google.com/group/visualsvn.
For more options, visit https://groups.google.com/d/optout.

Reply via email to