1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-12 23:56:13 +01:00

support history of projects via "osc log"

This commit is contained in:
Adrian Schröter 2010-05-27 07:17:27 +02:00
parent 24d3b18e13
commit b0b5953b3e

View File

@ -4139,7 +4139,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
Usage:
osc log (inside working copy)
osc log remote_project remote_package
osc log remote_project [remote_package]
${cmd_option_list}
"""
@ -4150,12 +4150,19 @@ Please submit there instead, or use --nodevelproject to force direct submission.
if len(args) == 0:
wd = os.curdir
project = store_read_project(wd)
package = store_read_package(wd)
elif len(args) < 2:
if is_project_dir(dir) or is_package_dir(dir):
project = store_read_project(wd)
if is_project_dir(dir):
package = "_project"
else:
package = store_read_package(wd)
elif len(args) < 1:
raise oscerr.WrongArgs('Too few arguments (required none or two)')
elif len(args) > 2:
raise oscerr.WrongArgs('Too many arguments (required none or two)')
elif len(args) == 1:
project = args[0]
package = "_project"
else:
project = args[0]
package = args[1]