##// END OF EJS Templates
test-lfs: perform the `chmod +x` command in a manner compatible with Windows
Matt Harbison -
r35138:5be1a5e8 default
parent child Browse files
Show More
@@ -459,15 +459,26
459 459 > [lfs]
460 460 > threshold=1
461 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 471 $ for i in 1 2 3; do
463 472 > cp ../repo10/a a
464 473 > if [ $i = 3 ]; then
465 474 > # make a content-only change
466 > chmod +x a
467 > i=2
475 > hg import -q --bypass ../patch.diff
476 > hg update -q
477 > rm ../patch.diff
478 > else
479 > echo $i >> a
480 > hg commit -m $i -A a
468 481 > fi
469 > echo $i >> a
470 > hg commit -m $i -A a
471 482 > done
472 483 $ [ -d .hg/store/lfs/objects ]
473 484
General Comments 0
You need to be logged in to leave comments. Login now