From d34421bd233999868dad764a505ce3d01c711d9c Mon Sep 17 00:00:00 2001 From: Patrick Hurst Date: Sun, 22 Aug 2010 20:07:27 -0400 Subject: [PATCH] change VERSION string use git describe --always to return a 'version number' --- plugins/misc.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/misc.py b/plugins/misc.py index 3ce29cf..710ea4b 100644 --- a/plugins/misc.py +++ b/plugins/misc.py @@ -45,10 +45,10 @@ def onjoin(paraml, conn=None): @hook.regex(r'^\x01VERSION\x01$') def version(inp, notice=None): - p = subprocess.Popen(['hg', 'id', '-n'], stdout=subprocess.PIPE) + p = subprocess.Popen(['git', 'describe', '--always'], stdout=subprocess.PIPE) stdout, _ = p.communicate() p.wait() - ret = 'r' + stdout[:-2] - notice('\x01VERSION skybot %s - http://bitbucket.org/Scaevolus/' + ret = stdout.strip() + notice('\x01VERSION skybot %s - http://github.com/rmmh/' 'skybot/\x01' % ret)