tests/test-narrow-commit.t
changeset 36122 dc01484606da
parent 36117 a2a6e724d61a
child 36238 deb851914fd7
equal deleted inserted replaced
36121:9772ef9f6c04 36122:dc01484606da
       
     1 #testcases flat tree
       
     2 
     1   $ . "$TESTDIR/narrow-library.sh"
     3   $ . "$TESTDIR/narrow-library.sh"
       
     4 
       
     5 #if tree
       
     6   $ cat << EOF >> $HGRCPATH
       
     7   > [experimental]
       
     8   > treemanifest = 1
       
     9   > EOF
       
    10 #endif
     2 
    11 
     3 create full repo
    12 create full repo
     4 
    13 
     5   $ hg init master
    14   $ hg init master
     6   $ cd master
    15   $ cd master
    65   $ echo modified2 > inside/f1
    74   $ echo modified2 > inside/f1
    66   $ hg commit -m 'modify inside/f1'
    75   $ hg commit -m 'modify inside/f1'
    67   created new head
    76   created new head
    68   $ hg files -r .
    77   $ hg files -r .
    69   inside/f1
    78   inside/f1
    70   outside/f1
    79   outside/f1 (flat !)
       
    80   outside/ (tree !)
    71 Some filesystems (notably FAT/exFAT only store timestamps with 2
    81 Some filesystems (notably FAT/exFAT only store timestamps with 2
    72 seconds of precision, so by sleeping for 3 seconds, we can ensure that
    82 seconds of precision, so by sleeping for 3 seconds, we can ensure that
    73 the timestamps of files stored by dirstate will appear older than the
    83 the timestamps of files stored by dirstate will appear older than the
    74 dirstate file, and therefore we'll be able to get stable output from
    84 dirstate file, and therefore we'll be able to get stable output from
    75 debugdirstate. If we don't do this, the test can be slightly flaky.
    85 debugdirstate. If we don't do this, the test can be slightly flaky.