Mercurial > hg
view tests/test-dumprevlog @ 8556:f5fae700cc00
inotify: set a flag so a failed inotify query doesn't get repeated.
If, for some reason, we can't get the inotify server to start, it's better to
disable inotify queries for the instance to avoid trying over and over to start
the server, which takes time. Just fall back on repo.status()
author | Nicolas Dumazet <nicdumz.commits@gmail.com> |
---|---|
date | Wed, 06 May 2009 01:40:03 +0900 |
parents | 6c82beaaa11a |
children |
line wrap: on
line source
#!/bin/sh CONTRIBDIR=$TESTDIR/../contrib echo % prepare repo-a mkdir repo-a cd repo-a hg init echo this is file a > a hg add a hg commit -m first echo adding to file a >> a hg commit -m second echo adding more to file a >> a hg commit -m third hg verify echo echo % dumping revlog of file a to stdout python $CONTRIBDIR/dumprevlog .hg/store/data/a.i echo % dumprevlog done echo echo % dump all revlogs to file repo.dump find .hg/store -name "*.i" | sort | xargs python $CONTRIBDIR/dumprevlog > ../repo.dump cd .. mkdir repo-b cd repo-b hg init echo echo % undumping into repo-b python $CONTRIBDIR/undumprevlog < ../repo.dump echo % undumping done cd .. echo echo % clone --pull repo-b repo-c to rebuild fncache hg clone --pull -U repo-b repo-c cd repo-c echo echo % verify repo-c hg verify cd .. echo echo % comparing repos hg -R repo-c incoming repo-a hg -R repo-a incoming repo-c exit 0