test-up-local-change
33 lines
| 443 B
| text/plain
|
TextLexer
/ tests / test-up-local-change
Thomas Arendsen Hein
|
r544 | #!/bin/sh | ||
mpm@selenic.com
|
r331 | |||
Thomas Arendsen Hein
|
r800 | set -e | ||
mpm@selenic.com
|
r331 | 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 | ||
Thomas Arendsen Hein
|
r800 | sed "s/\(\(---\|+++\) [a-zA-Z0-9_/.-]*\).*/\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 | ||
Thomas Arendsen Hein
|
r800 | sed "s/\(\(---\|+++\) [a-zA-Z0-9_/.-]*\).*/\1/" < ../d | ||
mpm@selenic.com
|
r331 | |||