From 297d5faebd1da57bc9dff9e24eea43f9b7d7c5b8 Mon Sep 17 00:00:00 2001 From: Bogdano Arendartchuk Date: Wed, 14 Nov 2007 22:50:43 +0000 Subject: Really fixed generation of unreleased commits It was using the previous markrelease revision as reference. The recent broken fix was using "releasesdata[0]" instead of "releasesdata[-1]" which is the newest release revision. --- CHANGES | 2 ++ RepSys/log.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 6aed71d..cad4d65 100644 --- a/CHANGES +++ b/CHANGES @@ -1,4 +1,6 @@ * 1.6.19.1 +- the fix for the unreleased commits problem in the previous release was + wrong, really fixed it * 1.6.19 - added complement for SILENT: CLOG, which hides everything that does not diff --git a/RepSys/log.py b/RepSys/log.py index 10026c3..730c674 100644 --- a/RepSys/log.py +++ b/RepSys/log.py @@ -427,9 +427,9 @@ def svn2rpm(pkgdirurl, rev=None, size=None, submit=False, # look for commits that have been not submitted (released) yet # this is done by getting all log entries newer (greater revision no.) - # than releasesdata[0] (in the case it exists) + # than releasesdata[-1] (in the case it exists) if releasesdata: - latest_revision = releasesdata[0][0] # "relrevision" + latest_revision = releasesdata[-1][0] # the latest copied rev else: latest_revision = 0 notsubmitted = [entry for entry in currentlog -- cgit v1.2.1