diff options
author | Guido Günther <agx@sigxcpu.org> | 2010-08-10 17:47:24 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2010-08-10 18:51:23 +0200 |
commit | 55fdbc67064a4f236b6d1e3ebc885f40c2c1fc44 (patch) | |
tree | cb16fd396deebab4c865703515d99b2219e9f66e /git-dch | |
parent | 3c6bbd0f4992f8da91693494f1a8980a4152e564 (diff) |
Check for legacy tags where necessary.
Diffstat (limited to 'git-dch')
-rwxr-xr-x | git-dch | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -302,8 +302,7 @@ def guess_snapshot_commit(cp, repo, options): # If the current topmost changelog entry has already been tagged rely on # the version information only. The upper level relies then on the version # info anyway: - tag = build_tag(options.debian_tag, cp['Version']) - if repo.has_tag(tag): + if repo.find_version(options.debian_tag, cp['Version']): return None # If we didn't find a snapshot header we look at the point the changelog # was last touched. @@ -415,7 +414,9 @@ def main(argv): else: print "Couldn't find snapshot header, using version info" if not since: - since = build_tag(options.debian_tag, cp['Version']) + since = repo.find_version(options.debian_tag, cp['Version']) + if not since: + raise GbpError, "Version %s not found" % cp['Version'] if args: print "Only looking for changes on '%s'" % " ".join(args) |