Changeset 12245 in genesis
- Timestamp:
- Apr 18, 2013, 6:39:47 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/gformat.py
r12233 r12245 32 32 import os 33 33 sys.path.append(os.path.dirname(__file__)) 34 sys.path.append('/usr/local/bin') 34 35 SVN = '/usr/local/bin/svn' 35 36 36 37 import cgi … … 181 182 # Sometimes getting version information is useless or harmfull, like in the pre-commit hooks 182 183 if add_version_info: 183 p = subprocess.Popen([ 'svn', 'info', datadump['autogen_gfile']], stderr=subprocess.STDOUT, stdout=subprocess.PIPE)184 p = subprocess.Popen([SVN, 'info', datadump['autogen_gfile']], stderr=subprocess.STDOUT, stdout=subprocess.PIPE) 184 185 lines = p.communicate()[0].split('\n') 185 186 if p.returncode == 0: … … 1158 1159 if form and form.has_key("action") and "update" in form["action"]: 1159 1160 output = "[INFO] Updating subverion, please wait...\n" 1160 output += subprocess.Popen([ 'svn', 'cleanup', "%s/.." % NODE_DIR], stderr=subprocess.STDOUT, stdout=subprocess.PIPE).communicate()[0]1161 output += subprocess.Popen([ 'svn', 'up', "%s/.." % NODE_DIR], stderr=subprocess.STDOUT, stdout=subprocess.PIPE).communicate()[0]1161 output += subprocess.Popen([SVN, 'cleanup', "%s/.." % NODE_DIR], stderr=subprocess.STDOUT, stdout=subprocess.PIPE).communicate()[0] 1162 output += subprocess.Popen([SVN, 'up', "%s/.." % NODE_DIR], stderr=subprocess.STDOUT, stdout=subprocess.PIPE).communicate()[0] 1162 1163 output += "[INFO] All done, redirecting in 5 seconds" 1163 1164 response_headers += [
Note:
See TracChangeset
for help on using the changeset viewer.