##// END OF EJS Templates
cd completer fixed to deal (partially) with dir names that have spaces in them (broken on win32)
cd completer fixed to deal (partially) with dir names that have spaces in them (broken on win32)

File last commit:

r466:d766fcbb
r481:f1e7b670
Show More
update_revnum.py
13 lines | 344 B | text/x-python | PythonLexer
vivainio
new tool to set useful (global) revision number to Release.py
r451 """ Change the revision number in Release.py """
import os
import re
vivainio
tools/update_revnum.py now gives path (req for some svn version)
r466 rev = os.popen('svnversion ..').read().strip()
vivainio
new tool to set useful (global) revision number to Release.py
r451
print "current rev is",rev
assert ':' not in rev
rfile = open('../IPython/Release.py').read()
newcont = re.sub(r'revision\s*=.*', "revision = '%s'" % rev, rfile)
vivainio
tools/update_revnum.py now gives path (req for some svn version)
r466 open('../IPython/Release.py','w').write(newcont)