view tests/test-copy-move-merge @ 6673:16d2d093d1dd

update: improved help text Using the term "the repository's working directory" instead of just "working directory" to make it nearly impossible to confuse it with $PWD. Also, this new wording better conveys the fact that update applies to the working dir as a whole (no matter what the $PWD currently is).
author Adrian Buehlmann <adrian@cadifra.com>
date Wed, 11 Jun 2008 13:51:57 +0200
parents 8d9bdcbb2b18
children
line wrap: on
line source

#!/bin/sh

mkdir t
cd t
hg init

echo 1 > a
hg ci -qAm "first" -d "1000000 0"

hg cp a b
hg mv a c
echo 2 >> b
echo 2 >> c

hg ci -qAm "second" -d "1000000 0"

hg co -C 0

echo 0 > a
echo 1 >> a

hg ci -qAm "other" -d "1000000 0"

hg merge --debug

echo "-- b --"
cat b

echo "-- c --"
cat c