#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2010 by Intevation GmbH
# Authors:
# Bjoern Ricks <bjoern.ricks@intevation.de>
#
# This program is free software under the GPL (>=v2)
# Read the file COPYING coming with the software for details.


from scm import SvnTagDetector

def main():
    tagsurl = "svn://anonsvn.kde.org/home/kde/tags/kdepim/"
    tagspattern = "^enterprise5\.0\.[0-9]+\.[0-9]+$"
    tagssubdir = ""
    tagdetector = SvnTagDetector(tagsurl, tagspattern, tagssubdir)
    (tagurl, revno, tagsubdir) = tagdetector.newest_tag_revision()

    print "%s, %s" % (tagurl, revno)

if __name__ == '__main__':
    main()

# vim:fenc=utf-8:et:sw=4:ts=4:tw=80: 
