tests/test-transaction-rollback-on-revlog-split.t
branchstable
changeset 50452 a445194f0a4d
parent 50450 f930af431193
child 50465 63dc24be635d
child 50642 05d429fe84ed
equal deleted inserted replaced
50451:d1d458fb96a5 50452:a445194f0a4d
     1 Test correctness of revlog inline -> non-inline transition
     1 Test correctness of revlog inline -> non-inline transition
     2 ----------------------------------------------------------
     2 ----------------------------------------------------------
       
     3 
       
     4 We test various file length and naming pattern as this created issue in the
       
     5 past.
     3 
     6 
     4 Helper extension to intercept renames and kill process
     7 Helper extension to intercept renames and kill process
     5 
     8 
     6   $ cat > $TESTTMP/intercept_before_rename.py << EOF
     9   $ cat > $TESTTMP/intercept_before_rename.py << EOF
     7   > import os
    10   > import os
    78   $ cd troffset-computation
    81   $ cd troffset-computation
    79   $ files="
    82   $ files="
    80   > file
    83   > file
    81   > Directory_With,Special%Char/Complex_File.babar
    84   > Directory_With,Special%Char/Complex_File.babar
    82   > foo/bar/babar_celeste/foo
    85   > foo/bar/babar_celeste/foo
       
    86   > 1234567890/1234567890/1234567890/1234567890/1234567890/1234567890/1234567890/1234567890/1234567890/1234567890/f
    83   > "
    87   > "
    84   $ for f in $files; do
    88   $ for f in $files; do
    85   >     mkdir -p `dirname $f`
    89   >     mkdir -p `dirname $f`
    86   > done
    90   > done
    87   $ for f in $files; do
    91   $ for f in $files; do
   177   rolling back interrupted transaction
   181   rolling back interrupted transaction
   178   (verify step skipped, run `hg verify` to check your repository content)
   182   (verify step skipped, run `hg verify` to check your repository content)
   179   $ f -s .hg/store/data/file*
   183   $ f -s .hg/store/data/file*
   180   .hg/store/data/file.i: size=1174
   184   .hg/store/data/file.i: size=1174
   181   $ hg tip
   185   $ hg tip
   182   changeset:   1:272bd31be9b8
   186   changeset:   1:cc8dfb126534
   183   tag:         tip
   187   tag:         tip
   184   user:        test
   188   user:        test
   185   date:        Thu Jan 01 00:00:00 1970 +0000
   189   date:        Thu Jan 01 00:00:00 1970 +0000
   186   summary:     b
   190   summary:     b
   187   
   191   
   247   rolling back interrupted transaction
   251   rolling back interrupted transaction
   248   (verify step skipped, run `hg verify` to check your repository content)
   252   (verify step skipped, run `hg verify` to check your repository content)
   249   $ f -s .hg/store/data/file*
   253   $ f -s .hg/store/data/file*
   250   .hg/store/data/file.i: size=1174
   254   .hg/store/data/file.i: size=1174
   251   $ hg tip
   255   $ hg tip
   252   changeset:   1:272bd31be9b8
   256   changeset:   1:cc8dfb126534
   253   tag:         tip
   257   tag:         tip
   254   user:        test
   258   user:        test
   255   date:        Thu Jan 01 00:00:00 1970 +0000
   259   date:        Thu Jan 01 00:00:00 1970 +0000
   256   summary:     b
   260   summary:     b
   257   
   261   
   311   rolling back interrupted transaction
   315   rolling back interrupted transaction
   312   (verify step skipped, run `hg verify` to check your repository content)
   316   (verify step skipped, run `hg verify` to check your repository content)
   313   $ f -s .hg/store/data/file*
   317   $ f -s .hg/store/data/file*
   314   .hg/store/data/file.i: size=1174
   318   .hg/store/data/file.i: size=1174
   315   $ hg tip
   319   $ hg tip
   316   changeset:   1:272bd31be9b8
   320   changeset:   1:cc8dfb126534
   317   tag:         tip
   321   tag:         tip
   318   user:        test
   322   user:        test
   319   date:        Thu Jan 01 00:00:00 1970 +0000
   323   date:        Thu Jan 01 00:00:00 1970 +0000
   320   summary:     b
   324   summary:     b
   321   
   325   
   351   .hg/store/data/file.d: size=0
   355   .hg/store/data/file.d: size=0
   352   .hg/store/data/file.i: size=1174
   356   .hg/store/data/file.i: size=1174
   353 
   357 
   354 
   358 
   355   $ hg tip
   359   $ hg tip
   356   changeset:   1:272bd31be9b8
   360   changeset:   1:cc8dfb126534
   357   tag:         tip
   361   tag:         tip
   358   user:        test
   362   user:        test
   359   date:        Thu Jan 01 00:00:00 1970 +0000
   363   date:        Thu Jan 01 00:00:00 1970 +0000
   360   summary:     b
   364   summary:     b
   361   
   365