tests/test-simple-update
author Nicolas Dumazet <nicdumz.commits@gmail.com>
Thu, 21 May 2009 19:26:15 +0900
changeset 8609 aeaa0bd9dc24
parent 3736 ad3d5b4367cb
permissions -rwxr-xr-x
inotify: process all inotify events in one batch When several inotify events happen, we don't have to process each event separately, calling everytime repowatcher.read_events() to fetch events from the underlying watcher: it is sufficient to call once read_events, to fetch all the events from the watcher.

#!/bin/sh

set -e

mkdir test
cd test
echo foo>foo
hg init
hg addremove
hg commit -m "1"
hg verify

hg clone . ../branch
cd ../branch
hg co
echo bar>>foo
hg commit -m "2"

cd ../test
hg pull ../branch
hg verify
hg co
cat foo
hg manifest --debug