tests/test-lfs-largefiles.t
branchstable
changeset 48796 c00d3ce4e94b
parent 48661 9e11a06bbb63
equal deleted inserted replaced
48776:b84ff512b645 48796:c00d3ce4e94b
   286   0 remove large_by_size.bin
   286   0 remove large_by_size.bin
   287   $ cd nolargefiles
   287   $ cd nolargefiles
   288 
   288 
   289 The requirement is added to the destination repo.
   289 The requirement is added to the destination repo.
   290 
   290 
   291   $ cat .hg/requires
   291   $ hg debugrequires | grep lfs
   292   dotencode
       
   293   dirstate-v2 (dirstate-v2 !)
       
   294   fncache
       
   295   generaldelta
       
   296   lfs
   292   lfs
   297   persistent-nodemap (rust !)
       
   298   revlog-compression-zstd (zstd !)
       
   299   revlogv1
       
   300   sparserevlog
       
   301   store
       
   302 
   293 
   303   $ hg log -r 'all()' -G -T '{rev} {join(lfs_files, ", ")} ({desc})\n'
   294   $ hg log -r 'all()' -G -T '{rev} {join(lfs_files, ", ")} ({desc})\n'
   304   o  8 large_by_size.bin (remove large_by_size.bin)
   295   o  8 large_by_size.bin (remove large_by_size.bin)
   305   |
   296   |
   306   o  7 large_by_size.bin (large by size)
   297   o  7 large_by_size.bin (large by size)
   343 
   334 
   344 This `head -n 20` looks dumb (since we expect no output), but if something
   335 This `head -n 20` looks dumb (since we expect no output), but if something
   345 breaks you can get 1048576 lines of +y in the output, which takes a looooooong
   336 breaks you can get 1048576 lines of +y in the output, which takes a looooooong
   346 time to print.
   337 time to print.
   347   $ hg diff -r 2:3 | head -n 20
   338   $ hg diff -r 2:3 | head -n 20
   348   $ hg diff -r 2:6
   339   $ hg diff -r 2:6 | head -n 20
   349   diff -r e989d0fa3764 -r 752e3a0d8488 large.bin
   340   diff -r e989d0fa3764 -r 752e3a0d8488 large.bin
   350   --- a/large.bin	Thu Jan 01 00:00:00 1970 +0000
   341   --- a/large.bin	Thu Jan 01 00:00:00 1970 +0000
   351   +++ b/large.bin	Thu Jan 01 00:00:00 1970 +0000
   342   +++ b/large.bin	Thu Jan 01 00:00:00 1970 +0000
   352   @@ -1,1 +1,1 @@
   343   @@ -1,1 +1,1 @@
   353   -below lfs threshold
   344   -below lfs threshold