1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-13 17:16:23 +01:00

add blame command

This commit is contained in:
Adrian Schröter 2017-03-02 16:05:48 +01:00
parent e324a36b41
commit 008a6009f8
2 changed files with 4 additions and 0 deletions

1
NEWS
View File

@ -1,5 +1,6 @@
0.157
- add unpublish command (requires OBS 2.8)
- add blame command (requires OBS 2.9)
- results: show multibuild results by default
- getbinaries: make .AppImage files executable

View File

@ -7934,6 +7934,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
help='always work with unexpanded packages.')
@cmdln.option('-M', '--meta', action='store_true',
help='list meta data files')
@cmdln.alias('blame')
@cmdln.alias('less')
def do_cat(self, subcmd, opts, *args):
"""${cmd_name}: Output the content of a file to standard output
@ -7965,6 +7966,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
apiurl = self.get_api_url()
query = { }
if subcmd == 'blame':
query['view'] = "blame"
if opts.meta:
query['meta'] = 1
if opts.revision: