1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-09-20 01:06:17 +02:00

use the baserev on links by default for diffing

This commit is contained in:
Adrian Schröter 2010-01-29 16:56:36 +01:00
parent 8c50908891
commit 94c9a3dde7
2 changed files with 3 additions and 1 deletions

1
NEWS
View File

@ -4,6 +4,7 @@
- fixed SSL proxy support
- fixed meta attribute create and set calls
- osc remotebuildlog supports a buildlogurl
- use the baserev on links by default for diffing
0.125
- add "osc pull" command to fetch and merge changes in the link target

View File

@ -2959,7 +2959,8 @@ def server_diff(apiurl,
old_project, old_package, old_revision,
new_project, new_package, new_revision, unified=False):
query = {'cmd': 'diff', 'expand': '1'}
# we default to the baserev here. an option to try to use the current base rev might be nice
query = {'cmd': 'diff', 'expand': '1', 'linkrev': 'base', 'olinkrev': 'base'}
if old_project:
query['oproject'] = old_project
if old_package: