Mercurial > hg
view tests/test-permissions @ 12260:0a63e91c519d
tests: unify test-merge-remove
author | Adrian Buehlmann <adrian@cadifra.com> |
---|---|
date | Sun, 12 Sep 2010 12:11:39 +0200 |
parents | 4c94b6d0fb1c |
children |
line wrap: on
line source
#!/bin/sh echo '% hg init t' hg init t cd t echo foo > a echo '% hg add a' hg add a echo '% hg commit' hg commit -m "1" echo '% hg verify' hg verify chmod -r .hg/store/data/a.i echo '% hg verify' hg verify 2>/dev/null || echo verify failed chmod +r .hg/store/data/a.i echo '% hg verify' hg verify 2>/dev/null || echo verify failed chmod -w .hg/store/data/a.i echo barber > a echo '% hg commit' hg commit -m "2" 2>/dev/null || echo commit failed chmod -w . echo '% hg diff' hg diff --nodates chmod +w . chmod +w .hg/store/data/a.i mkdir dir touch dir/a echo '% hg status' hg status chmod -rx dir echo '% hg status' hg status # reenable perm to allow deletion chmod +rx dir