~hudson-openstack/nova/trunk

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Soren Hansen
  • Date: 2010-08-31 19:17:48 UTC
  • mto: This revision was merged to the branch mainline in revision 266.
  • Revision ID: soren.hansen@rackspace.com-20100831191748-xw95ow850lokqgas
Better log formatter for Nova. It's just like gnuchangelog, but logs the author rather than the committer.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
    def run(self):
30
30
        if os.path.isdir('.bzr'):
31
31
            # We're in a bzr branch
32
 
            log_cmd = subprocess.Popen(["bzr", "log", "--gnu"],
33
 
                                       stdout=subprocess.PIPE)
 
32
            env = os.environ.copy()
 
33
            env['BZR_PLUGIN_PATH'] = os.path.abspath('./bzrplugins')
 
34
            log_cmd = subprocess.Popen(["bzr", "log", "--novalog"],
 
35
                                       stdout=subprocess.PIPE, env=env)
34
36
            changelog = log_cmd.communicate()[0]
35
37
            with open("ChangeLog", "w") as changelog_file:
36
38
                changelog_file.write(changelog)