tests/test-narrow-sparse.t
changeset 41147 eb172f9c208c
child 41148 8eaf693b1409
equal deleted inserted replaced
41146:963462786f6e 41147:eb172f9c208c
       
     1 Testing interaction of sparse and narrow when both are enabled on the client
       
     2 side and we do a non-ellipsis clone
       
     3 
       
     4 #testcases tree flat
       
     5   $ . "$TESTDIR/narrow-library.sh"
       
     6   $ cat << EOF >> $HGRCPATH
       
     7   > [extensions]
       
     8   > sparse =
       
     9   > EOF
       
    10 
       
    11 #if tree
       
    12   $ cat << EOF >> $HGRCPATH
       
    13   > [experimental]
       
    14   > treemanifest = 1
       
    15   > EOF
       
    16 #endif
       
    17 
       
    18   $ hg init master
       
    19   $ cd master
       
    20 
       
    21   $ mkdir inside
       
    22   $ echo 'inside' > inside/f
       
    23   $ hg add inside/f
       
    24   $ hg commit -m 'add inside'
       
    25 
       
    26   $ mkdir widest
       
    27   $ echo 'widest' > widest/f
       
    28   $ hg add widest/f
       
    29   $ hg commit -m 'add widest'
       
    30 
       
    31   $ mkdir outside
       
    32   $ echo 'outside' > outside/f
       
    33   $ hg add outside/f
       
    34   $ hg commit -m 'add outside'
       
    35 
       
    36   $ cd ..
       
    37 
       
    38 narrow clone the inside file
       
    39 
       
    40   $ hg clone --narrow ssh://user@dummy/master narrow --include inside/f
       
    41   requesting all changes
       
    42   adding changesets
       
    43   adding manifests
       
    44   adding file changes
       
    45   added 3 changesets with 1 changes to 1 files
       
    46   new changesets *:* (glob)
       
    47   updating to branch default
       
    48   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
       
    49   $ cd narrow
       
    50   $ hg tracked
       
    51   I path:inside/f
       
    52   $ hg files
       
    53   inside/f
       
    54 
       
    55 XXX: we should not have sparse enabled
       
    56   $ cat .hg/sparse
       
    57   [include]
       
    58   inside/f
       
    59 
       
    60   $ cat .hg/requires
       
    61   dotencode
       
    62   exp-sparse
       
    63   fncache
       
    64   generaldelta
       
    65   narrowhg-experimental
       
    66   revlogv1
       
    67   sparserevlog
       
    68   store
       
    69   treemanifest (tree !)