##// END OF EJS Templates
Minor typo change to reflect actual values used.
Minor typo change to reflect actual values used.

File last commit:

r2223:b7256206 default
r2338:391c5d0f 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