tests/test-lfs.t
changeset 35140 5be1a5e869c1
parent 35101 eb4241f914a3
child 35175 e0a1b9ee93cd
equal deleted inserted replaced
35139:a2e927ded455 35140:5be1a5e869c1
   457   $ cd repo11
   457   $ cd repo11
   458   $ cat >> .hg/hgrc <<EOF
   458   $ cat >> .hg/hgrc <<EOF
   459   > [lfs]
   459   > [lfs]
   460   > threshold=1
   460   > threshold=1
   461   > EOF
   461   > EOF
       
   462   $ cat > ../patch.diff <<EOF
       
   463   > # HG changeset patch
       
   464   > 2
       
   465   > 
       
   466   > diff --git a/a b/a
       
   467   > old mode 100644
       
   468   > new mode 100755
       
   469   > EOF
       
   470 
   462   $ for i in 1 2 3; do
   471   $ for i in 1 2 3; do
   463   >     cp ../repo10/a a
   472   >     cp ../repo10/a a
   464   >     if [ $i = 3 ]; then
   473   >     if [ $i = 3 ]; then
   465   >         # make a content-only change
   474   >         # make a content-only change
   466   >         chmod +x a
   475   >         hg import -q --bypass ../patch.diff
   467   >         i=2
   476   >         hg update -q
       
   477   >         rm ../patch.diff
       
   478   >     else
       
   479   >         echo $i >> a
       
   480   >         hg commit -m $i -A a
   468   >     fi
   481   >     fi
   469   >     echo $i >> a
       
   470   >     hg commit -m $i -A a
       
   471   > done
   482   > done
   472   $ [ -d .hg/store/lfs/objects ]
   483   $ [ -d .hg/store/lfs/objects ]
   473 
   484 
   474   $ cd ..
   485   $ cd ..
   475 
   486