Mercurial > wikked
comparison setup.py @ 232:dbc855c585cf
Fixed a bug in the setup script.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Fri, 14 Mar 2014 21:41:15 -0700 |
parents | 64c64df08d2a |
children | bcbe934eab29 |
comparison
equal
deleted
inserted
replaced
231:553dfa009650 | 232:dbc855c585cf |
---|---|
17 return out, err | 17 return out, err |
18 | 18 |
19 | 19 |
20 # Figure out the version. | 20 # Figure out the version. |
21 # (this is loosely based on what Mercurial does) | 21 # (this is loosely based on what Mercurial does) |
22 version = None | |
22 try: | 23 try: |
23 if os.path.isdir('.hg'): | 24 if os.path.isdir('.hg'): |
24 cmd = ['hg', 'log', '-r', '.', '--template', '{tags}\n'] | 25 cmd = ['hg', 'log', '-r', '.', '--template', '{tags}\n'] |
25 tags, err = runcmd(cmd) | 26 tags, err = runcmd(cmd) |
26 versions = [t for t in tags.split() if t[0].isdigit()] | 27 versions = [t for t in tags.split() if t[0].isdigit()] |