view tests/test-diffdir @ 4175:a2335e832e16

Make update with no node jump to the tip of the current branch
author Brendan Cully <brendan@kublai.com>
date Sat, 10 Mar 2007 17:36:27 -0800
parents 4574a8cb080f
children f80cf8b7bbd9
line wrap: on
line source

#!/bin/sh

hg init
hg branch dummy # needed so -r "" doesn't point to the unnamed/default branch
touch a
hg add a
hg ci -m "a" -d "1000000 0"

echo 123 > b
hg add b
hg diff --nodates

hg diff --nodates -r tip

echo foo > a
hg diff --nodates

hg diff -r ""
hg diff -r tip -r ""

true