mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-13 09:16:14 +01:00
add blame command
This commit is contained in:
parent
e324a36b41
commit
008a6009f8
1
NEWS
1
NEWS
@ -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
|
||||
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user