[diff_branches] remove the broken --format option

It doesn't work as expected ('r', 's', or 't' instead of 'rst') and we
only provide one option anyway.

Change-Id: I4300264d7f919fb2041b10ee5d9f6e246c443377
This commit is contained in:
Gauvain Pocentek 2017-06-01 22:37:37 +02:00
parent e136fd3a56
commit b5742da44a
1 changed files with 3 additions and 11 deletions

View File

@ -251,13 +251,6 @@ def main():
required=False,
default='.',
type=str,)
parser.add_argument('-f', '--format',
dest='format',
help='Output format (rst).',
required=False,
default='rst',
type=str,
choices=('rst'),)
parser.add_argument('-n', '--no-venv-update',
dest='novenvupdate',
help='Don\'t update the virtual envs.',
@ -275,10 +268,9 @@ def main():
release = args.new_branch.replace('stable/', '')
env = get_env(project, release, old_list, new_list)
ext = 'rst' if args.format == 'rst' else 'xml'
filename = ("%(project)s-conf-changes.%(ext)s" %
{'project': project, 'ext': ext})
tmpl_file = 'templates/changes.%s.j2' % args.format
filename = ("%(project)s-conf-changes.rst" %
{'project': project})
tmpl_file = 'templates/changes.rst.j2'
if not os.path.exists(args.target):
os.makedirs(args.target)
dest = os.path.join(args.target, filename)