##// END OF EJS Templates
change 'hg tag' to tag the parent rev instead of tip
change 'hg tag' to tag the parent rev instead of tip

File last commit:

r2223:b7256206 default
r2647:46182568 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