Skip to content

Commit

Permalink
Change 'rdiff' command to display diff for _project if no package is …
Browse files Browse the repository at this point in the history
…specified
  • Loading branch information
dmach committed Oct 5, 2023
1 parent 62e4817 commit 90b821e
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions osc/commandline.py
Original file line number Diff line number Diff line change
Expand Up @@ -4758,13 +4758,10 @@ def do_rdiff(self, subcmd, opts, *args):
new_package = old_package

if not old_package:
if opts.meta:
new_project = old_project
new_package = "_project"
old_project = None
old_package = None
else:
self.argparse_error("Please specify either a package or the --meta option")
new_project = old_project
new_package = "_project"
old_project = None
old_package = None

Check warning on line 4764 in osc/commandline.py

View check run for this annotation

Codecov / codecov/patch

osc/commandline.py#L4761-L4764

Added lines #L4761 - L4764 were not covered by tests

if opts.meta:
opts.unexpand = True
Expand Down

0 comments on commit 90b821e

Please sign in to comment.