tests/test-remotefilelog-bundles.t
changeset 46847 47a9527731c3
parent 40722 0800d9e6e216
equal deleted inserted replaced
46846:2819df466cae 46847:47a9527731c3
    24 Unbundling a shallow bundle
    24 Unbundling a shallow bundle
    25 
    25 
    26   $ hg strip -r 66ee28d0328c
    26   $ hg strip -r 66ee28d0328c
    27   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
    27   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
    28   saved backup bundle to $TESTTMP/shallow/.hg/strip-backup/66ee28d0328c-3d7aafd1-backup.hg (glob)
    28   saved backup bundle to $TESTTMP/shallow/.hg/strip-backup/66ee28d0328c-3d7aafd1-backup.hg (glob)
    29   1 files fetched over 1 fetches - (1 misses, 0.00% hit ratio) over *s (glob)
    29   2 files fetched over 2 fetches - (2 misses, 0.00% hit ratio) over *s (glob)
    30   $ hg unbundle .hg/strip-backup/66ee28d0328c-3d7aafd1-backup.hg
    30   $ hg unbundle .hg/strip-backup/66ee28d0328c-3d7aafd1-backup.hg
    31   adding changesets
    31   adding changesets
    32   adding manifests
    32   adding manifests
    33   adding file changes
    33   adding file changes
    34   added 2 changesets with 0 changes to 0 files
    34   added 2 changesets with 2 changes to 1 files
    35   new changesets 66ee28d0328c:16db62c5946f
    35   new changesets 66ee28d0328c:16db62c5946f
    36   (run 'hg update' to get a working copy)
    36   (run 'hg update' to get a working copy)
    37 
    37 
    38 Unbundling a full bundle
    38 Unbundling a full bundle
    39 
    39 
    49   new changesets 66ee28d0328c:16db62c5946f (2 drafts)
    49   new changesets 66ee28d0328c:16db62c5946f (2 drafts)
    50   (run 'hg update' to get a working copy)
    50   (run 'hg update' to get a working copy)
    51 
    51 
    52 Pulling from a shallow bundle
    52 Pulling from a shallow bundle
    53 
    53 
    54   $ hg strip -r 66ee28d0328c
    54   $ hg strip -r 66ee28d0328c --config remotefilelog.strip.includefiles=none
    55   saved backup bundle to $TESTTMP/shallow/.hg/strip-backup/66ee28d0328c-3d7aafd1-backup.hg (glob)
    55   saved backup bundle to $TESTTMP/shallow/.hg/strip-backup/66ee28d0328c-3d7aafd1-backup.hg (glob)
    56   $ hg pull -r 66ee28d0328c .hg/strip-backup/66ee28d0328c-3d7aafd1-backup.hg
    56   $ hg pull -r 66ee28d0328c .hg/strip-backup/66ee28d0328c-3d7aafd1-backup.hg
    57   pulling from .hg/strip-backup/66ee28d0328c-3d7aafd1-backup.hg
    57   pulling from .hg/strip-backup/66ee28d0328c-3d7aafd1-backup.hg
    58   searching for changes
    58   searching for changes
    59   adding changesets
    59   adding changesets
    61   adding file changes
    61   adding file changes
    62   added 1 changesets with 0 changes to 0 files
    62   added 1 changesets with 0 changes to 0 files
    63   new changesets 66ee28d0328c (1 drafts)
    63   new changesets 66ee28d0328c (1 drafts)
    64   (run 'hg update' to get a working copy)
    64   (run 'hg update' to get a working copy)
    65 
    65 
    66 Pulling from a full bundle
    66 Pulling from a full bundle, also testing that strip produces a full bundle by
       
    67 default.
    67 
    68 
    68   $ hg strip -r 66ee28d0328c
    69   $ hg strip -r 66ee28d0328c
    69   saved backup bundle to $TESTTMP/shallow/.hg/strip-backup/66ee28d0328c-b6ee89e7-backup.hg (glob)
    70   saved backup bundle to $TESTTMP/shallow/.hg/strip-backup/66ee28d0328c-b6ee89e7-backup.hg (glob)
    70   $ hg pull -r 66ee28d0328c ../fullbundle.hg
    71   $ hg pull -r 66ee28d0328c .hg/strip-backup/66ee28d0328c-b6ee89e7-backup.hg
    71   pulling from ../fullbundle.hg
    72   pulling from .hg/strip-backup/66ee28d0328c-b6ee89e7-backup.hg
    72   searching for changes
    73   searching for changes
    73   abort: cannot pull from full bundles
    74   abort: cannot pull from full bundles
    74   (use `hg unbundle` instead)
    75   (use `hg unbundle` instead)
    75   [255]
    76   [255]