tests/test-journal-exists.t
branchstable
changeset 49621 55c6ebd11cb9
parent 45906 95c4cca641f6
child 49825 2f2682f40ea0
equal deleted inserted replaced
49620:8cd39c20445e 49621:55c6ebd11cb9
     1   $ hg init
     1   $ hg init repo
       
     2   $ cd repo
     2   $ echo a > a
     3   $ echo a > a
     3   $ hg ci -Am0
     4   $ hg ci -Am0
     4   adding a
     5   adding a
     5 
     6 
     6   $ hg -q clone . foo
     7   $ hg -q clone . foo
    50   $ hg bundle -qa repo.hg
    51   $ hg bundle -qa repo.hg
    51   $ chmod -w foo/.hg/store/00changelog.i
    52   $ chmod -w foo/.hg/store/00changelog.i
    52 
    53 
    53   $ hg -R foo unbundle repo.hg
    54   $ hg -R foo unbundle repo.hg
    54   adding changesets
    55   adding changesets
    55   abort: Permission denied: '$TESTTMP/foo/.hg/store/.00changelog.i-*' (glob)
    56   abort: Permission denied: '$TESTTMP/repo/foo/.hg/store/.00changelog.i-*' (glob)
    56   [255]
    57   [255]
    57 
    58 
    58   $ if test -f foo/.hg/store/journal; then echo 'journal exists :-('; fi
    59   $ if test -f foo/.hg/store/journal; then echo 'journal exists :-('; fi
    59 #endif
    60 #endif
    60 
    61