tests/test-largefiles.t
branchstable
changeset 17659 ae57920ac188
parent 17658 a02c1ffddae9
child 17661 67deea9c1c42
child 17678 07d577dae285
child 17695 75f25bd4c7d4
equal deleted inserted replaced
17658:a02c1ffddae9 17659:ae57920ac188
  1581   lf_subrepo_archive/subrepo
  1581   lf_subrepo_archive/subrepo
  1582   lf_subrepo_archive/subrepo/large.txt
  1582   lf_subrepo_archive/subrepo/large.txt
  1583   lf_subrepo_archive/subrepo/normal.txt
  1583   lf_subrepo_archive/subrepo/normal.txt
  1584 
  1584 
  1585   $ cd ..
  1585   $ cd ..
       
  1586 
       
  1587 Test that addremove picks up largefiles prior to the initial commit (issue3541)
       
  1588 
       
  1589   $ hg init addrm2
       
  1590   $ cd addrm2
       
  1591   $ touch large.dat
       
  1592   $ touch large2.dat
       
  1593   $ touch normal
       
  1594   $ hg add --large large.dat
       
  1595   $ hg addremove -v
       
  1596   adding large2.dat as a largefile
       
  1597   adding normal
       
  1598 
       
  1599 Test that forgetting all largefiles reverts to islfilesrepo() == False
       
  1600 (addremove will add *.dat as normal files now)
       
  1601   $ hg forget large.dat
       
  1602   $ hg forget large2.dat
       
  1603   $ hg addremove -v
       
  1604   adding large.dat
       
  1605   adding large2.dat
       
  1606 
       
  1607 Test commit's addremove option prior to the first commit
       
  1608   $ hg forget large.dat
       
  1609   $ hg forget large2.dat
       
  1610   $ hg add --large large.dat
       
  1611   $ hg ci -Am "commit"
       
  1612   adding large2.dat as a largefile
       
  1613   Invoking status precommit hook
       
  1614   A large.dat
       
  1615   A large2.dat
       
  1616   A normal
       
  1617   $ find .hglf/ | sort
       
  1618   .hglf/
       
  1619   .hglf/large.dat
       
  1620   .hglf/large2.dat
       
  1621 
       
  1622   $ cd ..