mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-13 17:16:23 +01:00
-added command 'rlog', to show commit logs of remote packages
This commit is contained in:
parent
6ddace8c97
commit
cc0ce146e2
@ -1945,6 +1945,24 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
print '\n'.join(get_commitlog(apiurl, project, package, rev))
|
||||
|
||||
|
||||
@cmdln.option('-r', '--revision', metavar='rev',
|
||||
help='show log of the specified revision')
|
||||
def do_rlog(self, subcmd, opts, prj, pkg):
|
||||
"""${cmd_name}: Shows the commit log of a remote package
|
||||
|
||||
${cmd_usage}
|
||||
${cmd_option_list}
|
||||
"""
|
||||
|
||||
apiurl = conf.config['apiurl']
|
||||
rev, dummy = parseRevisionOption(opts.revision)
|
||||
if rev and not checkRevision(prj, pkg, rev, apiurl):
|
||||
print >>sys.stderr, 'Revision \'%s\' does not exist' % rev
|
||||
sys.exit(1)
|
||||
|
||||
print '\n'.join(get_commitlog(apiurl, prj, pkg, rev))
|
||||
|
||||
|
||||
@cmdln.option('-f', '--failed', action='store_true',
|
||||
help='rebuild all failed packages')
|
||||
def do_rebuildpac(self, subcmd, opts, *args):
|
||||
|
Loading…
Reference in New Issue
Block a user