1 // Copyright 2004-2007 Castle Project - http://www.castleproject.org/
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
7 // http://www.apache.org/licenses/LICENSE-2.0
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
15 namespace Castle
.SvnHooks
20 /// Summary description for IPreCommit.
22 public interface IPreCommit
26 /// This function will be called on every file
27 /// being commited, the file will be examined
28 /// on-demand to avoid loading unnecessary
29 /// information that the hooks dont use.
31 /// <param name="file">
32 /// The file that is being commited
35 /// null or an empty list if the commit is to
36 /// be allowed, or a list of errors that has
39 Error
[] PreCommit(RepositoryFile file
);
42 /// This function will be called on every directory
43 /// being commited, the directory will be examined
44 /// on-demand to avoid loading unnecessary
45 /// information that the hooks dont use.
47 /// <param name="directory">
48 /// The directory that is being commited
51 /// null or an empty list if the commit is to
52 /// be allowed, or a list of errors that has
55 Error
[] PreCommit(RepositoryDirectory directory
);