tests/test-lfs.t
changeset 35140 5be1a5e869c1
parent 35101 eb4241f914a3
child 35175 e0a1b9ee93cd
--- a/tests/test-lfs.t	Tue Nov 14 22:35:42 2017 -0500
+++ b/tests/test-lfs.t	Tue Nov 14 22:53:52 2017 -0500
@@ -459,15 +459,26 @@
   > [lfs]
   > threshold=1
   > EOF
+  $ cat > ../patch.diff <<EOF
+  > # HG changeset patch
+  > 2
+  > 
+  > diff --git a/a b/a
+  > old mode 100644
+  > new mode 100755
+  > EOF
+
   $ for i in 1 2 3; do
   >     cp ../repo10/a a
   >     if [ $i = 3 ]; then
   >         # make a content-only change
-  >         chmod +x a
-  >         i=2
+  >         hg import -q --bypass ../patch.diff
+  >         hg update -q
+  >         rm ../patch.diff
+  >     else
+  >         echo $i >> a
+  >         hg commit -m $i -A a
   >     fi
-  >     echo $i >> a
-  >     hg commit -m $i -A a
   > done
   $ [ -d .hg/store/lfs/objects ]