On Tue, Aug 10, 2010 at 06:25:15PM +0100, Julian Foad wrote:
> All I know about Andrew's particular requirements related to this
> query is what's quoted above - "If I ... accidentally leave the banned
> buildlog.htm file in ..." - which sounded vaguely like a requirement for
> a path-based rule.  Maybe I missed something.

The start-commit hook doesn't know what paths the client will touch
during the commit. It only knows which user is making the commit, and
the capabilities advertised by the client (like "I can do merge tracking"). 
It can be used to temporarily make an entire repository read-only,
by rejecting any commit. But it can't make decisions based on the
content of a commit.

Stefan

Reply via email to