##// END OF EJS Templates
tools/update_revnum: Change to bzr revision numbering.
tools/update_revnum: Change to bzr revision numbering.

File last commit:

r1051:c149f141
r1051:c149f141
Show More
update_revnum.py
14 lines | 349 B | text/x-python | PythonLexer
#!/usr/bin/env python
""" Change the revision number in Release.py """
import os
import re
rev = os.popen('bzr revno').read().strip()
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)
open('../IPython/Release.py','w').write(newcont)