##// END OF EJS Templates
dispatch: provide help for disabled extensions and commands...
dispatch: provide help for disabled extensions and commands Before a command is declared unknown, each extension in hgext is searched, starting with hgext.<cmdname>. If there's a matching command, a help message suggests the appropriate extension and how to enable it. Every extension could potentially be imported, but for cases like rebase, relink, etc. only one extension is imported. For the case of "hg help disabledext", if the extension is in hgext, the extension description is read and a similar help suggestion is printed. No extension import occurs.

File last commit:

r8167:6c82beaa default
r10364:de1e7099 default
Show More
test-dumprevlog
61 lines | 908 B | text/plain | TextLexer
#!/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