Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

list view for osc submitreq show

  • Loading branch information...
commit 17cd24bb573302d0bb85f4ff4aaf031afee0cd5c 1 parent f8f0ae8
Michal Vyskocil mvyskocil authored
Showing with 8 additions and 2 deletions.
  1. +1 −0  NEWS
  2. +7 −2 osc/commandline.py
1  NEWS
View
@@ -5,6 +5,7 @@
- support "osc getbinaries" in checkout packages
- new vc command for editing the changes files (requires build.rpm 2009.04.17 or newest)
- new repairlink command for repairing a broken source link
+- '-b|--brief' option for osc submitreq show subcommand
0.116:
- support listings of older revisions with "osc ls -R"
9 osc/commandline.py
View
@@ -454,6 +454,8 @@ def do_meta(self, subcmd, opts, *args):
'(primary project where a package is developed)')
@cmdln.option('-s', '--state', default='new',
help='only list requests in one of the comma separated given states [default=new]')
+ @cmdln.option('-b', '--brief', action='store_true', default=False,
+ help='print output in list view as list subcommand')
@cmdln.alias("sr")
@cmdln.alias("submitrequest")
def do_submitreq(self, subcmd, opts, *args):
@@ -499,7 +501,7 @@ def do_submitreq(self, subcmd, opts, *args):
osc submitreq create [-m TEXT] SOURCEPRJ SOURCEPKG DESTPRJ [DESTPKG]
osc submitreq list [PRJ [PKG]]
osc submitreq log ID
- osc submitreq show [-d] ID
+ osc submitreq show [-d] [-b] ID
osc submitreq accept [-m TEXT] ID
osc submitreq decline [-m TEXT] ID
osc submitreq delete [-m TEXT] ID
@@ -642,7 +644,10 @@ def do_submitreq(self, subcmd, opts, *args):
# show
elif cmd == 'show':
r = get_submit_request(conf.config['apiurl'], reqid)
- print r
+ if opts.brief:
+ print r.list_view()
+ else:
+ print r
# fixme: will inevitably fail if the given target doesn't exist
if opts.diff:
try:
Please sign in to comment.
Something went wrong with that request. Please try again.