Merge "[diff_branches] remove the broken --format option"
This commit is contained in:
commit
f66660ab5a
@ -251,13 +251,6 @@ def main():
|
|||||||
required=False,
|
required=False,
|
||||||
default='.',
|
default='.',
|
||||||
type=str,)
|
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',
|
parser.add_argument('-n', '--no-venv-update',
|
||||||
dest='novenvupdate',
|
dest='novenvupdate',
|
||||||
help='Don\'t update the virtual envs.',
|
help='Don\'t update the virtual envs.',
|
||||||
@ -275,10 +268,9 @@ def main():
|
|||||||
|
|
||||||
release = args.new_branch.replace('stable/', '')
|
release = args.new_branch.replace('stable/', '')
|
||||||
env = get_env(project, release, old_list, new_list)
|
env = get_env(project, release, old_list, new_list)
|
||||||
ext = 'rst' if args.format == 'rst' else 'xml'
|
filename = ("%(project)s-conf-changes.rst" %
|
||||||
filename = ("%(project)s-conf-changes.%(ext)s" %
|
{'project': project})
|
||||||
{'project': project, 'ext': ext})
|
tmpl_file = 'templates/changes.rst.j2'
|
||||||
tmpl_file = 'templates/changes.%s.j2' % args.format
|
|
||||||
if not os.path.exists(args.target):
|
if not os.path.exists(args.target):
|
||||||
os.makedirs(args.target)
|
os.makedirs(args.target)
|
||||||
dest = os.path.join(args.target, filename)
|
dest = os.path.join(args.target, filename)
|
||||||
|
Loading…
Reference in New Issue
Block a user