tests/test-permissions.t
changeset 49825 2f2682f40ea0
parent 48681 e845537f6adb
child 50292 adecb1ab4a0d
equal deleted inserted replaced
49824:fdd227585d5a 49825:2f2682f40ea0
    17   $ echo foo > a
    17   $ echo foo > a
    18   $ hg add a
    18   $ hg add a
    19 
    19 
    20   $ hg commit -m "1"
    20   $ hg commit -m "1"
    21 
    21 
    22   $ hg verify
    22   $ hg verify -q
    23   checking changesets
       
    24   checking manifests
       
    25   crosschecking files in changesets and manifests
       
    26   checking files
       
    27   checked 1 changesets with 1 changes to 1 files
       
    28 
    23 
    29   $ chmod -r .hg/store/data/a.i
    24   $ chmod -r .hg/store/data/a.i
    30 
    25 
    31   $ hg verify
    26   $ hg verify -q
    32   checking changesets
       
    33   checking manifests
       
    34   crosschecking files in changesets and manifests
       
    35   checking files
       
    36   abort: Permission denied: '$TESTTMP/t/.hg/store/data/a.i'
    27   abort: Permission denied: '$TESTTMP/t/.hg/store/data/a.i'
    37   [255]
    28   [255]
    38 
    29 
    39   $ chmod +r .hg/store/data/a.i
    30   $ chmod +r .hg/store/data/a.i
    40 
    31 
    41   $ hg verify
    32   $ hg verify -q
    42   checking changesets
       
    43   checking manifests
       
    44   crosschecking files in changesets and manifests
       
    45   checking files
       
    46   checked 1 changesets with 1 changes to 1 files
       
    47 
    33 
    48   $ chmod -w .hg/store/data/a.i
    34   $ chmod -w .hg/store/data/a.i
    49 
    35 
    50   $ echo barber > a
    36   $ echo barber > a
    51   $ hg commit -m "2"
    37   $ hg commit -m "2"