Mercurial > hg
comparison tests/test-keyword @ 11065:76d6c19aa8ef
keyword: cleanup test and make it portable
- replace sed call with python command
- no need to back up hgrc before record
author | Christian Ebert <blacktrash@gmx.net> |
---|---|
date | Sat, 01 May 2010 20:49:40 +0200 |
parents | 6e9b9f6c117c |
children | 56f306238256 |
comparison
equal
deleted
inserted
replaced
11064:590b1d6ef50b | 11065:76d6c19aa8ef |
---|---|
141 hg -v kwexpand | 141 hg -v kwexpand |
142 echo % compare changenodes in a c | 142 echo % compare changenodes in a c |
143 cat a c | 143 cat a c |
144 | 144 |
145 echo % record | 145 echo % record |
146 cp "$HGRCPATH" $HGRCPATH.bak | 146 python -c \ |
147 sed -e '1 a \foo' a > a.tmp | 147 'l=open("a").readlines();l.insert(1,"foo\n");l.append("bar\n");open("a","w").writelines(l);' |
148 mv a.tmp a | |
149 echo bar >> a | |
150 hg record -d '1 10' -m rectest<<EOF | 148 hg record -d '1 10' -m rectest<<EOF |
151 y | 149 y |
152 y | 150 y |
153 n | 151 n |
154 EOF | 152 EOF |