From f316a0664332390488b93909d4c61c26a5dce364 Mon Sep 17 00:00:00 2001 From: "martin@piware.de" <> Date: Tue, 19 Dec 2006 17:38:03 +0100 Subject: [PATCH] request-sync: support specifying a basever --- requestsync | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/requestsync b/requestsync index f964d8a..a5b35ad 100755 --- a/requestsync +++ b/requestsync @@ -37,11 +37,18 @@ def debian_changelog(sourcepkg, version): # entry point # -if len(sys.argv) != 3: - print 'Usage: requestsync ' +if len(sys.argv) < 3: + print '''Usage: requestsync [basever] + +In some cases, the base version (fork point from Debian) cannot be determined +automatically, and you'll get a complete Debian changelog. Specify the correct +base version in that case.''' sys.exit (1) -(srcpkg, release) = sys.argv[1:] +(srcpkg, release) = sys.argv[1:3] +force_base_ver = None +if len(sys.argv) >= 4: + force_base_ver = sys.argv[3] (cur_ver, component) = cur_version_component(srcpkg, release) # TODO: figure this out from packages.qa.debian.org; changelogs.d.n only works @@ -71,6 +78,9 @@ if changelog: if uidx > 0: base_ver = base_ver[:uidx] + if force_base_ver: + base_ver = force_base_ver + report += '\nChangelog since current %s version %s:\n\n' % (release, cur_ver) report += debian_changelog(srcpkg, base_ver) + '\n' -- 2.39.5