2005-11-03 11:45:54 +03:00
|
|
|
#!/bin/sh
|
|
|
|
|
2007-08-24 02:52:28 +04:00
|
|
|
hg init t
|
|
|
|
cd t
|
2005-11-03 11:45:54 +03:00
|
|
|
echo foo > a
|
|
|
|
hg add a
|
2006-03-13 15:05:41 +03:00
|
|
|
hg commit -m "1" -d "1000000 0"
|
2005-11-03 11:45:54 +03:00
|
|
|
hg verify
|
2006-12-01 15:34:09 +03:00
|
|
|
chmod -r .hg/store/data/a.i
|
2005-11-03 11:45:54 +03:00
|
|
|
hg verify 2>/dev/null || echo verify failed
|
2006-12-01 15:34:09 +03:00
|
|
|
chmod +r .hg/store/data/a.i
|
2005-11-03 11:45:54 +03:00
|
|
|
hg verify 2>/dev/null || echo verify failed
|
2006-12-01 15:34:09 +03:00
|
|
|
chmod -w .hg/store/data/a.i
|
2005-11-03 11:45:54 +03:00
|
|
|
echo barber > a
|
2006-03-13 15:05:41 +03:00
|
|
|
hg commit -m "2" -d "1000000 0" 2>/dev/null || echo commit failed
|
2007-11-10 01:21:35 +03:00
|
|
|
chmod -w .
|
2007-08-24 02:56:08 +04:00
|
|
|
hg diff --nodates
|
2007-11-10 01:21:35 +03:00
|
|
|
chmod +w .
|
2008-10-15 16:52:27 +04:00
|
|
|
|
|
|
|
chmod +w .hg/store/data/a.i
|
|
|
|
mkdir dir
|
|
|
|
touch dir/a
|
|
|
|
hg status
|
|
|
|
chmod -rx dir
|
|
|
|
hg status
|
2008-10-18 22:47:47 +04:00
|
|
|
# reenable perm to allow deletion
|
|
|
|
chmod +rx dir
|