mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-10 13:05:46 +01:00
Add rlog support for srcmd5 (bnc#460538).
This commit is contained in:
parent
3c33ad297e
commit
cdcca2746d
@ -2970,15 +2970,19 @@ def get_commitlog(apiurl, prj, package, revision):
|
|||||||
revisions = root.findall('revision')
|
revisions = root.findall('revision')
|
||||||
revisions.reverse()
|
revisions.reverse()
|
||||||
for node in revisions:
|
for node in revisions:
|
||||||
|
srcmd5 = node.find('srcmd5').text
|
||||||
try:
|
try:
|
||||||
rev = int(node.get('rev'))
|
rev = int(node.get('rev'))
|
||||||
#vrev = int(node.get('vrev')) # what is the meaning of vrev?
|
#vrev = int(node.get('vrev')) # what is the meaning of vrev?
|
||||||
|
try:
|
||||||
if revision and rev != int(revision):
|
if revision and rev != int(revision):
|
||||||
continue
|
continue
|
||||||
|
except ValueError:
|
||||||
|
if revision != srcmd5:
|
||||||
|
continue
|
||||||
except ValueError:
|
except ValueError:
|
||||||
# this part should _never_ be reached but...
|
# this part should _never_ be reached but...
|
||||||
return [ 'an unexpected error occured - please file a bug' ]
|
return [ 'an unexpected error occured - please file a bug' ]
|
||||||
srcmd5 = node.find('srcmd5').text
|
|
||||||
version = node.find('version').text
|
version = node.find('version').text
|
||||||
user = node.find('user').text
|
user = node.find('user').text
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user