Mercurial > hg
view tests/test-hgrc @ 7624:f2fa1a9eede6
Improved hgweb test.
The hgweb fix in 069b29656401 aimed at restoring the "back" link in hgweb's
filelog that has been lost in 62e0bb41e682. However, the previous version of
this test ran the filelog command on a file with only a single filelog entry.
In this case, the previous hgweb version did not exhibit the bug. The error
condition is now correctly tested with a filelog of 2 entries.
author | Stefan Ring <stefan@complang.tuwien.ac.at> |
---|---|
date | Mon, 12 Jan 2009 13:20:09 +0100 |
parents | e51c0f41f271 |
children | ba75830d17a9 |
line wrap: on
line source
#!/bin/sh mkdir t cd t hg init echo "invalid" > .hg/hgrc hg status 2>&1 |sed -e "s:/.*\(/t/.*\):...\1:" #issue 1199, escaping cd .. hg init "foo%bar" hg clone "foo%bar" foobar p=`pwd` cd foobar cat .hg/hgrc |sed -e "s:$p:...:" hg paths |sed -e "s:$p:...:" hg showconfig |sed -e "s:$p:...:"