Author: mattip <[email protected]>
Branch:
Changeset: r82795:65217c37cf95
Date: 2016-03-04 14:05 +0200
http://bitbucket.org/pypy/pypy/changeset/65217c37cf95/
Log: check that branch actually exists
diff --git a/pypy/tool/release/force-builds.py
b/pypy/tool/release/force-builds.py
--- a/pypy/tool/release/force-builds.py
+++ b/pypy/tool/release/force-builds.py
@@ -9,7 +9,7 @@
modified by PyPy team
"""
-import os, sys, urllib
+import os, sys, urllib, subprocess
from twisted.internet import reactor, defer
from twisted.python import log
@@ -83,4 +83,9 @@
(options, args) = parser.parse_args()
if not options.branch:
parser.error("branch option required")
+ try:
+ subprocess.check_call(['hg','id','-r', options.branch])
+ except subprocess.CalledProcessError:
+ print 'branch', options.branch, 'could not be found in local
repository'
+ sys.exit(-1)
main(options.branch, options.server, user=options.user)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit