Mercurial > hg
view tests/filtertmp.py @ 10956:a156ce543a5b
bookmarks: complete the missing references from dda4ad7c9ea9 (issue2121)
The fix for issue1611 left one last use of "repo" instead of "self" that has
resulted in more memory leaks from push/pull operations.
author | Isaac Jurado <diptongo@gmail.com> |
---|---|
date | Sat, 17 Apr 2010 14:32:26 +0200 |
parents | b26c4a89a143 |
children |
line wrap: on
line source
#!/usr/bin/env python # # This used to be a simple sed call like: # # $ sed "s:$HGTMP:*HGTMP*:" # # But $HGTMP has ':' under Windows which breaks the sed call. # import sys, os input = sys.stdin.read() input = input.replace(os.sep, '/') hgtmp = os.environ['HGTMP'].replace(os.sep, '/') input = input.replace(hgtmp, '$HGTMP') sys.stdout.write(input)