Skip to content

Commit

Permalink
- simplify "setlinkrev" call and do the right thing by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschroeter committed Feb 29, 2012
1 parent 793d9ec commit 96042a3
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions osc/commandline.py
Original file line number Diff line number Diff line change
Expand Up @@ -2176,8 +2176,6 @@ def do_editmeta(self, subcmd, opts, *args):
help='use the specified revision.')
@cmdln.option('-R', '--use-plain-revision', action='store_true',
help='Don\'t expand revsion based on baserev, the revision which was used when commit happened.')
@cmdln.option('-b', '--use-baserev', action='store_true',
help='Use the revisions which exists when the original commit happend and don\'t try to merge later commits.')
@cmdln.option('-u', '--unset', action='store_true',
help='remove revision in link, it will point always to latest revision')
def do_setlinkrev(self, subcmd, opts, *args):
Expand All @@ -2196,11 +2194,10 @@ def do_setlinkrev(self, subcmd, opts, *args):
apiurl = self.get_api_url()
package = None
expand = True
baserev = False
baserev = True
if opts.use_plain_revision:
expand = False
if opts.use_baserev:
baserev = True
baserev = False

rev = parseRevisionOption(opts.revision)[0] or ''
if opts.unset:
Expand Down

0 comments on commit 96042a3

Please sign in to comment.