view tests/test-addremove @ 4997:81f8ff2a9bf2

posixfile_nt: '+' should allow read access. This fixes unexpected I/O error on committing many files due to cset:8a53b39cd402 (r4902 in crew).
author Shun-ichi GOTO <shunichi.goto@gmail.com>
date Wed, 25 Jul 2007 15:58:10 +0900
parents f975e986b4bf
children
line wrap: on
line source

#!/bin/sh

hg init rep
cd rep
mkdir dir
touch foo dir/bar
hg -v addremove
hg -v commit -m "add 1" -d "1000000 0"
cd dir/
touch ../foo_2 bar_2
hg -v addremove
hg -v commit -m "add 2" -d "1000000 0"

cd ..
hg init sim
cd sim
echo a > a
echo a >> a
echo a >> a
echo c > c
hg commit -Ama
mv a b
rm c
echo d > d
hg addremove -s 50
hg commit -mb