tests/test-up-local-change
author mpm@selenic.com
Wed, 15 Jun 2005 15:58:53 -0800
changeset 365 f94d3632a323
parent 350 b4e0e20646bb
child 485 c5705ab9cebd
permissions -rwxr-xr-x
One too many newlines in verbose output showed up in regression -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 One too many newlines in verbose output showed up in regression manifest hash: 184bd0353358ec24c3711420ba3c6745a688ebc9 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCsMC9ywK+sNU5EO8RAuYsAJ4wCphPRGI5omFy0VkbiQp8OairRwCcDdD2 pAR58+i+urS7MlbaDisCYUM= =Ty7w -----END PGP SIGNATURE-----

#!/bin/bash

export HGMERGE=true

set -ex
mkdir r1
cd r1
hg init
echo a > a
hg addremove
hg commit -t "1" -u test -d "0 0"

cd ..
mkdir r2
cd r2
hg init ../r1
hg up
echo abc > a
hg diff > ../d
sed "s/\(\(---\|+++\).*\)\t.*/\1/" < ../d

cd ../r1
echo b > b
echo a2 > a
hg addremove
hg commit -t "2" -u test -d "0 0"

cd ../r2
hg -q pull ../r1
hg status
hg -d up
hg -d up -m
hg parents
hg -v history
hg diff > ../d
sed "s/\(\(---\|+++\).*\)\t.*/\1/" < ../d