Commit 931b8fd7 authored by Lorenz Hüdepohl's avatar Lorenz Hüdepohl
Browse files

Add "--diff", "--only-project" to home project setup

Also, colorful diffs
parent df652975
Pipeline #113620 passed with stage
in 11 seconds
......@@ -904,7 +904,7 @@ Macros:
new.write(s2)
new.close()
call(["diff", "-s", "-u", old.name, "--label", "old-prjconf", new.name, "--label", "new-prjconf"])
call(["diff", "--color=auto", "-s", "-u", old.name, "--label", label1, new.name, "--label", label2])
os.unlink(old.name)
os.unlink(new.name)
......
......@@ -11,10 +11,14 @@ import osc.cmdln
@osc.cmdln.option('-n', '--dry-run', action="store_true",
help="Do not actually run anything but output the resulting XML configuration")
@osc.cmdln.option('--diff', action="store_true",
help="Show (only) differences of prjconf and project meta")
@osc.cmdln.option('--remove-old', action="store_true", default=False,
help="Remove all obsolete repositories instead of only disabling builds for packages there")
@osc.cmdln.option('--remove-old-matching', default=None,
help="Remove all obsolete repositories matching this regular expression")
@osc.cmdln.option('--only-project', action="store_true",
help="Only change project metadata, do not iterate over packages and change their enabled repositories")
@osc.cmdln.option('--distribution', metavar="DIST", nargs=1,
help="Base distribution, necessary argument unless set previously for this project. "
"Valid arguments are the names of any repository in the 'software' project.")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment