view tests/test-diffdir @ 10836:e5aaa4543289 stable

dirstate: fix in memory dirstate entries for 1-second race Only the on-disk file was modified, we need to modify the in-memory dirstate as well.
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Mon, 05 Apr 2010 18:13:20 +0200
parents f80cf8b7bbd9
children
line wrap: on
line source

#!/bin/sh

hg init
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