##// END OF EJS Templates
Use python instead of shell printf with \x sequences for test-encoding....
Use python instead of shell printf with \x sequences for test-encoding. Needed e.g. to be compatible with Solaris.

File last commit:

r2223:b7256206 default
r3789:734b1d6b default
Show More
test-permissions
15 lines | 320 B | text/plain | TextLexer
#!/bin/sh
hg init
echo foo > a
hg add a
hg commit -m "1" -d "1000000 0"
hg verify
chmod -r .hg/data/a.i
hg verify 2>/dev/null || echo verify failed
chmod +r .hg/data/a.i
hg verify 2>/dev/null || echo verify failed
chmod -w .hg/data/a.i
echo barber > a
hg commit -m "2" -d "1000000 0" 2>/dev/null || echo commit failed