Package svnmailer
[hide private]

Source Code for Package svnmailer

 1  # -*- coding: utf-8 -*- 
 2  # pylint: disable-msg = C0121 
 3  # 
 4  # Copyright 2004-2006 André Malo or his licensors, as applicable 
 5  # 
 6  # Licensed under the Apache License, Version 2.0 (the "License"); 
 7  # you may not use this file except in compliance with the License. 
 8  # You may obtain a copy of the License at 
 9  # 
10  #     http://www.apache.org/licenses/LICENSE-2.0 
11  # 
12  # Unless required by applicable law or agreed to in writing, software 
13  # distributed under the License is distributed on an "AS IS" BASIS, 
14  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
15  # See the License for the specific language governing permissions and 
16  # limitations under the License. 
17  """ 
18  This is the core svnmailer package. It contains all logic to send 
19  subversion commit mails. The package is intended to be used by 
20  the svn-mailer command line script. 
21   
22  @var version: Version of the svnmailer package 
23  @type version: C{str} 
24   
25  @var is_dev: is development version? 
26  @type is_dev: C{bool} 
27  """ 
28  __author__    = "André Malo" 
29  __docformat__ = "epytext en" 
30   
31  version = "1.0.9" 
32  is_dev = False 
33   
34  if is_dev: 
35      if "@@VERSION@@".find("@VERSION@") == -1: # dev release 
36          version = "@@VERSION@@" 
37      else: 
38          version = "%s-dev" % version 
39