7 #_build_search = re.compile('^(Mon)|(Tue)|(Wed)|(Thu)|(Fri)|(Sat)|(Sun)', re.MULTILINE)
8 _build_search = re.compile('</patch>', re.MULTILINE)
11 """Counts the number of patches that have been made and
12 returns that as the build number."""
14 p = subprocess.Popen(['darcs', 'changes', '--xml-output'], stdout=subprocess.PIPE)
15 data = p.stdout.read()
16 build_num = len(_build_search.findall(data))
19 if __name__ == '__main__':
20 print "%s" % (getBuildNumber())