Mercurial > public > mercurial-scm > hg
diff tests/test-convert-hg-source @ 7231:8e7130a10f3b
convert: ignore hg source errors with hg.ignoreerrors (issue 1357)
This flag makes missing revlog errors to be ignored which allow broken
repositories to be fixed by converting them from and to Mercurial.
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Tue, 21 Oct 2008 21:24:47 +0200 |
parents | 180a3eee4b75 |
children | 314fc589b313 |
line wrap: on
line diff
--- a/tests/test-convert-hg-source Thu Oct 23 14:56:16 2008 -0500 +++ b/tests/test-convert-hg-source Tue Oct 21 21:24:47 2008 +0200 @@ -36,5 +36,34 @@ hg convert --datesort orig new 2>&1 | grep -v 'subversion python bindings could not be loaded' cd new hg out ../orig +cd .. + +echo % init broken repository +hg init broken +cd broken +echo a >> a +echo b >> b +hg ci -qAm init +echo a >> a +echo b >> b +hg copy b c +hg ci -qAm changeall +hg up -qC 0 +echo bc >> b +hg ci -m changebagain +HGMERGE=internal:local hg -q merge +hg ci -m merge +hg mv b d +hg ci -m moveb +echo % break it +rm .hg/store/data/b.* +cd .. + +hg --config convert.hg.ignoreerrors=True convert broken fixed +hg -R fixed verify +echo '% manifest -r 0' +hg -R fixed manifest -r 0 +echo '% manifest -r tip' +hg -R fixed manifest -r tip true