4
from subprocess import call, PIPE
7
sys.path.insert(0, '/home/abentley/bzrplugins')
8
sys.path.insert(0, os.path.dirname(os.path.realpath('/home/abentley/bin/bzr')))
10
print "bzrtools version: %s" % bzrtools.__version__
11
def minigrep(pattern, filename):
12
setup = open(filename, 'rb')
14
match = re.search(pattern, line)
18
newsmatch = minigrep('RELEASE: bzrtools %s' % (bzrtools.__version__), 'NEWS')
20
print "NEWS entry missing"
23
print "NEWS entry found"
24
if call(['bzr', 'diff'], stdout=PIPE) != 0:
25
print "Please commit before releasing"