tests/test-narrow-archive.t
changeset 36117 a2a6e724d61a
equal deleted inserted replaced
36116:7f68235f23ff 36117:a2a6e724d61a
       
     1 Make a narrow clone then archive it
       
     2   $ . "$TESTDIR/narrow-library.sh"
       
     3 
       
     4   $ hg init master
       
     5   $ cd master
       
     6 
       
     7   $ for x in `$TESTDIR/seq.py 3`; do
       
     8   >   echo $x > "f$x"
       
     9   >   hg add "f$x"
       
    10   >   hg commit -m "Add $x"
       
    11   > done
       
    12 
       
    13   $ hg serve -a localhost -p $HGPORT1 -d --pid-file=hg.pid
       
    14   $ cat hg.pid >> "$DAEMON_PIDS"
       
    15 
       
    16   $ cd ..
       
    17   $ hg clone --narrow --include f1 --include f2 http://localhost:$HGPORT1/ narrowclone1
       
    18   requesting all changes
       
    19   adding changesets
       
    20   adding manifests
       
    21   adding file changes
       
    22   added 3 changesets with 2 changes to 2 files
       
    23   new changesets * (glob)
       
    24   updating to branch default
       
    25   2 files updated, 0 files merged, 0 files removed, 0 files unresolved
       
    26 
       
    27 The tar should only contain f1 and f2
       
    28   $ cd narrowclone1
       
    29   $ hg archive -t tgz repo.tgz
       
    30   $ tar tfz repo.tgz
       
    31   repo/f1
       
    32   repo/f2