1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-10-15 21:30:05 +02:00

- do_status: added '--show-excluded' option to show all files (except the store dir)

Additionally "osc st" doesn't show dirs anymore if it's called from
a package wc because dirs cannot be added to a package
This commit is contained in:
Marcus Huewe
2010-08-11 18:05:12 +02:00
parent ba4b0d3c20
commit e29b227b5b
2 changed files with 19 additions and 10 deletions

View File

@@ -2691,6 +2691,9 @@ Please submit there instead, or use --nodevelproject to force direct submission.
help='print as little as possible')
@cmdln.option('-v', '--verbose', action='store_true',
help='print extra information')
@cmdln.option('-e', '--show-excluded', action='store_true',
help='also show files which are excluded by the ' \
'"exclude_glob" config option')
@cmdln.alias('st')
def do_status(self, subcmd, opts, *args):
"""${cmd_name}: Show status of files in working copy
@@ -2747,10 +2750,10 @@ Please submit there instead, or use --nodevelproject to force direct submission.
raise oscerr.NoWorkingCopy, msg
lines = []
# process single packages
lines = getStatus(findpacs(pacpaths), None, opts.verbose, opts.quiet)
lines = getStatus(findpacs(pacpaths), None, opts.verbose, opts.quiet, opts.show_excluded)
# process project dirs
for prj, pacs in prjpacs.iteritems():
lines += getStatus(findpacs(pacs), prj, opts.verbose, opts.quiet)
lines += getStatus(findpacs(pacs), prj, opts.verbose, opts.quiet, opts.show_excluded)
if lines:
print '\n'.join(lines)