Mercurial > hg
changeset 35140:5be1a5e869c1
test-lfs: perform the `chmod +x` command in a manner compatible with Windows
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Tue, 14 Nov 2017 22:53:52 -0500 |
parents | a2e927ded455 |
children | 32bb27dd5282 |
files | tests/test-lfs.t |
diffstat | 1 files changed, 15 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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 ]