Move tagging to use git

This commit is contained in:
Kovid Goyal 2013-05-28 17:08:39 +05:30
parent 866bbaec91
commit 6f408ec810

View File

@ -105,11 +105,10 @@ class Manual(Command):
class TagRelease(Command):
description = 'Tag a new release in bzr'
description = 'Tag a new release in git'
def run(self, opts):
self.info('Tagging release')
subprocess.check_call(('bzr tag '+__version__).split())
subprocess.check_call('bzr commit --unchanged -m'.split() + ['IGN:Tag release'])
subprocess.check_call('git tag -a {0} -m "version-{0}"'.format(__version__).split())
subprocess.check_call('git push origin {0}'.format(__version__).split())