1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-24 22:06:14 +01:00

* support branching with --force, to override existing target.

* Sorted OBS 2.0 features in NEWS file
This commit is contained in:
Adrian Schröter 2010-05-19 10:47:01 +02:00
parent e649a55120
commit a337968dcb
3 changed files with 10 additions and 4 deletions

8
NEWS
View File

@ -1,11 +1,15 @@
0.127
- add size limit mode, files can be ignored on checkout or update given a certain size limit.
- --csv/--format options for results command - using format user can explicitly specify what he wants print
- support for "unresolvable" state of OBS 2.0
- osc branch reads project/package in package directory
- fix creation of package link, when target project has the package via linked project
- add support for CBpreinstall/CBinstall
#
# Features which require OBS 2.0
#
- support "osc add http://...", this uses obs source service for downloading a file and verify it via sha256 verifier service
- add support for CBpreinstall/CBinstall
- support branch --force to override target
- support for "unresolvable" state of OBS 2.0
0.126
- added VM autosetup to osc. This requires appropriate OBS version and build script version.

View File

@ -1665,7 +1665,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
help='Checkout branched package afterwards ' \
'(\'osc bco\' is a shorthand for this option)' )
@cmdln.option('-f', '--force', default=False, action="store_true",
help='force commit - do not tests a file list')
help='force branch, overwrite target')
@cmdln.option('-m', '--message', metavar='TEXT',
help='specify message TEXT')
@cmdln.option('-r', '--revision', metavar='rev',

View File

@ -3417,13 +3417,15 @@ def attribute_branch_pkg(apiurl, attribute, maintained_update_project_attribute,
return r
def branch_pkg(apiurl, src_project, src_package, nodevelproject=False, rev=None, target_project=None, target_package=None, return_existing=False, msg=''):
def branch_pkg(apiurl, src_project, src_package, nodevelproject=False, rev=None, target_project=None, target_package=None, return_existing=False, msg='', force=False):
"""
Branch a package (via API call)
"""
query = { 'cmd': 'branch' }
if nodevelproject:
query['ignoredevel'] = '1'
if force:
query['force'] = '1'
if rev:
query['rev'] = rev
if target_project: