diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2013-08-17 15:48:59 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2013-08-17 15:48:59 -0400 |
commit | d3eaf21c8918ce65bde30893b00adf18cf2f3a70 (patch) | |
tree | f980be3dd70d5a32d21a4d6bee4b5603550fb6e6 /release.py | |
parent | de71398660ecb616b5285334fa7c9fc10610126c (diff) | |
download | external_python_setuptools-d3eaf21c8918ce65bde30893b00adf18cf2f3a70.tar.gz external_python_setuptools-d3eaf21c8918ce65bde30893b00adf18cf2f3a70.tar.bz2 external_python_setuptools-d3eaf21c8918ce65bde30893b00adf18cf2f3a70.zip |
Extract bookmark name into the class
Diffstat (limited to 'release.py')
-rw-r--r-- | release.py | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -62,17 +62,19 @@ def replacer(match): return "`{text} <{url}>`_".format(text=text, url=url) class BootstrapBookmark: - @staticmethod - def add(): - cmd = ['hg', 'bookmark', '-i', 'bootstrap', '-f'] + name = 'bootstrap' + + @classmethod + def add(cls): + cmd = ['hg', 'bookmark', '-i', cls.name, '-f'] subprocess.Popen(cmd) - @staticmethod - def push(): + @classmethod + def push(cls): """ Push the bootstrap bookmark """ - push_command = ['hg', 'push', '-B', 'bootstrap'] + push_command = ['hg', 'push', '-B', cls.name] # don't use check_call here because mercurial will return a non-zero # code even if it succeeds at pushing the bookmark (because there are # no changesets to be pushed). !dm mercurial |