test-up-local-change
33 lines
| 418 B
| text/plain
|
TextLexer
/ tests / test-up-local-change
Thomas Arendsen Hein
|
r544 | #!/bin/sh | ||
mpm@selenic.com
|
r331 | |||
set -ex | ||||
mkdir r1 | ||||
cd r1 | ||||
hg init | ||||
echo a > a | ||||
hg addremove | ||||
mpm@selenic.com
|
r749 | hg commit -m "1" -d "0 0" | ||
mpm@selenic.com
|
r331 | |||
mpm@selenic.com
|
r485 | hg clone . ../r2 | ||
cd ../r2 | ||||
mpm@selenic.com
|
r331 | hg up | ||
echo abc > a | ||||
mpm@selenic.com
|
r332 | hg diff > ../d | ||
sed "s/\(\(---\|+++\).*\)\t.*/\1/" < ../d | ||||
mpm@selenic.com
|
r331 | |||
cd ../r1 | ||||
echo b > b | ||||
echo a2 > a | ||||
hg addremove | ||||
mpm@selenic.com
|
r749 | hg commit -m "2" -d "0 0" | ||
mpm@selenic.com
|
r331 | |||
cd ../r2 | ||||
hg -q pull ../r1 | ||||
hg status | ||||
mpm@selenic.com
|
r591 | hg --debug up | ||
hg --debug up -m | ||||
mpm@selenic.com
|
r331 | hg parents | ||
hg -v history | ||||
mpm@selenic.com
|
r332 | hg diff > ../d | ||
sed "s/\(\(---\|+++\).*\)\t.*/\1/" < ../d | ||||
mpm@selenic.com
|
r331 | |||