mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-09 22:36:14 +01:00
support to view the commit history of deleted packages
This commit is contained in:
parent
7fa621be16
commit
507567be71
1
NEWS
1
NEWS
@ -6,6 +6,7 @@
|
||||
- add "createrequest -a add_me" shortcut
|
||||
- add "less" command, doing the same as "osc cat" but with pager
|
||||
- fallback to unexpanded diff mode on "osc diff" on merge error.
|
||||
- support viewing the commit history of deleted packages
|
||||
|
||||
0.130
|
||||
- new "revert" command to restore the original working copy file (without
|
||||
|
@ -4610,6 +4610,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
help='generate output in CSV (separated by |)')
|
||||
@cmdln.option('', '--xml', action='store_true',
|
||||
help='generate output in XML')
|
||||
@cmdln.option('-D', '--deleted', action='store_true',
|
||||
help='work on deleted package')
|
||||
@cmdln.option('-M', '--meta', action='store_true',
|
||||
help='checkout out meta data instead of sources' )
|
||||
def do_log(self, subcmd, opts, *args):
|
||||
@ -4657,7 +4659,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
if opts.xml:
|
||||
format = 'xml'
|
||||
|
||||
log = '\n'.join(get_commitlog(apiurl, project, package, rev, format, opts.meta))
|
||||
log = '\n'.join(get_commitlog(apiurl, project, package, rev, format, opts.meta, opts.deleted))
|
||||
run_pager(log)
|
||||
|
||||
def do_service(self, subcmd, opts, *args):
|
||||
|
@ -4925,10 +4925,12 @@ def print_jobhistory(apiurl, prj, current_package, repository, arch, format = 't
|
||||
print '%s %-50s %-16s %-16s %-16s %-16s' % (endtime, package[0:49], reason[0:15], code[0:15], waitbuild, worker)
|
||||
|
||||
|
||||
def get_commitlog(apiurl, prj, package, revision, format = 'text', meta = False):
|
||||
def get_commitlog(apiurl, prj, package, revision, format = 'text', meta = False, deleted = False):
|
||||
import time, locale
|
||||
|
||||
query = {}
|
||||
if deleted:
|
||||
query['deleted'] = 1
|
||||
if meta:
|
||||
query['meta'] = 1
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user