# HG changeset patch # User Matt Harbison # Date 1510718032 18000 # Node ID 5be1a5e869c1ae9966591cf70e25025c2907fd1f # Parent a2e927ded455197e29c3b12de164d972f6fea225 test-lfs: perform the `chmod +x` command in a manner compatible with Windows diff -r a2e927ded455 -r 5be1a5e869c1 tests/test-lfs.t --- 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 < # 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 ]