Mercurial > ~astiob > upreckon > hgweb
view publish.py @ 22:f07b7a431ea6
Further 2.00 work
Testconfs in all supported kinds of archives should now work.
Test runs are now cancelled by pressing Escape rather than Ctrl+C.
Improved time control.
Greatly improved temporary and helper file cleanup.
The pause configuration variable can now be a callable and is now processed using subprocess rather than system().
author | Oleg Oshmyan <chortos@inbox.lv> |
---|---|
date | Wed, 22 Sep 2010 22:01:56 +0000 |
parents | a2c9f7cfa174 |
children |
line wrap: on
line source
#! /usr/bin/python # Copyright (c) 2009-2010 Chortos-2 <chortos@inbox.lv> with open('test-svn.py') as t: f = t.read() i = f.find('# $Rev: ') j = f.find('\n', i) rev = f[i+8:j-2] f = f[0:i] + f[j+1:] f = f.replace('$$REV$$', rev) with open('test.py', 'wb') as t: t.write(f)