~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to release.py

  • Committer: Aaron Bentley
  • Date: 2007-03-07 14:14:01 UTC
  • Revision ID: abentley@panoramicfeedback.com-20070307141401-lpvmug502lgcg504
Release script checks for uncommitted changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
if os.path.exists(final_name):
38
38
    print "Final file exists already."
39
39
    sys.exit(1)
 
40
if call(['bzr', 'diff']) != 0:
 
41
    print "Please commit before releasing"
 
42
    sys.exit(1)
40
43
retcode = call(['bzr', 'export', '../bzrtools.tar.gz'])
41
44
if retcode != 0:
42
45
    sys.exit(1)