aboutsummaryrefslogtreecommitdiffstats
path: root/release.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2013-08-17 15:48:59 -0400
committerJason R. Coombs <jaraco@jaraco.com>2013-08-17 15:48:59 -0400
commitd3eaf21c8918ce65bde30893b00adf18cf2f3a70 (patch)
treef980be3dd70d5a32d21a4d6bee4b5603550fb6e6 /release.py
parentde71398660ecb616b5285334fa7c9fc10610126c (diff)
downloadexternal_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.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/release.py b/release.py
index edf6f4be..85d8f86f 100644
--- a/release.py
+++ b/release.py
@@ -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