2005-07-29 18:19:43 +04:00
|
|
|
#!/bin/sh
|
2005-06-22 07:14:11 +04:00
|
|
|
|
|
|
|
mkdir t
|
|
|
|
cd t
|
|
|
|
hg init
|
|
|
|
echo This is file a1 > a
|
|
|
|
echo This is file b1 > b
|
|
|
|
hg add a b
|
2006-03-13 15:05:41 +03:00
|
|
|
hg commit -m "commit #0" -d "1000000 0"
|
2005-06-22 07:14:11 +04:00
|
|
|
echo This is file b22 > b
|
2006-03-13 15:05:41 +03:00
|
|
|
hg commit -m"comment #1" -d "1000000 0"
|
2005-06-22 07:14:11 +04:00
|
|
|
hg update 0
|
|
|
|
rm b
|
2006-03-13 15:05:41 +03:00
|
|
|
hg commit -A -m"comment #2" -d "1000000 0"
|
2006-03-15 13:26:57 +03:00
|
|
|
# in theory, we shouldn't need the "-y" below, but it prevents
|
2005-06-22 07:14:11 +04:00
|
|
|
# this test from hanging when "hg update" erroneously prompts the
|
|
|
|
# user for "keep or delete"
|
2006-03-15 13:26:57 +03:00
|
|
|
hg update -y 1
|
|
|
|
|
2005-06-22 07:14:11 +04:00
|
|
|
exit 0
|