RevlogError on re-creating repository at the same location
Created originally on Bitbucket by kandrey89 (Andrey Kuznetsov)
Created a new repository in a folder with some files, largefile extension enabled. Made 1 commit with .hgignore file. Decided to delete repo and start fresh, in TortoiseHg closed the repo and removed it from registry, then deleted .hg folder and .hglf folder and .hgignore file. Tried to create a new repo in the same folder, and got a TortoiseHg Error dialog saying: "Unknown version (2) in revlog 00changelog.i Try refreshing your repository."
I expected TortoiseHg to create a fresh repo and not complain.
#!python
** Mercurial version (4.5.2). TortoiseHg version (4.5.2)
** Command:
** CWD: /Applications/TortoiseHg.app/Contents/Resources
** Encoding: utf-8
** Extensions loaded: largefiles, tortoisehg.util.configitems
** Python version: 2.7.14 (default, Jan 21 2018, 23:28:46) [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.39.2)]
** System: Darwin AndreyK.local 17.6.0 Darwin Kernel Version 17.6.0: Tue May 8 15:22:16 PDT 2018; root:xnu-4570.61.1~1/RELEASE_X86_64 x86_64
** Qt-5.9.3 PyQt-5.9.2 QScintilla-2.10.2
Traceback (most recent call last):
File "/Applications/TortoiseHg.app/Contents/Resources/lib/python2.7/tortoisehg/hgqt/repotreemodel.py", line 425, in _updateItem
File "/Applications/TortoiseHg.app/Contents/Resources/lib/python2.7/tortoisehg/hgqt/repotreemodel.py", line 420, in _updateBaseNode
File "/Applications/TortoiseHg.app/Contents/Resources/lib/python2.7/tortoisehg/util/hglib.py", line 163, in repoidnode
File "/Applications/TortoiseHg.app/Contents/Resources/lib/python2.7/tortoisehg/util/hglib.py", line 150, in _firstchangectx
File "/Applications/TortoiseHg.app/Contents/Resources/lib/python2.7/tortoisehg/hgqt/thgrepo.py", line 772, in __getitem__
File "/Applications/TortoiseHg.app/Contents/Resources/lib/python2.7/hgext/largefiles/reposetup.py", line 47, in __getitem__
File "/Applications/TortoiseHg.app/Contents/Resources/lib/python2.7/mercurial/localrepo.py", line 745, in __getitem__
File "/Applications/TortoiseHg.app/Contents/Resources/lib/python2.7/mercurial/context.py", line 474, in __init__
File "/Applications/TortoiseHg.app/Contents/Resources/lib/python2.7/mercurial/repoview.py", line 216, in changelog
File "/Applications/TortoiseHg.app/Contents/Resources/lib/python2.7/mercurial/localrepo.py", line 83, in __get__
File "/Applications/TortoiseHg.app/Contents/Resources/lib/python2.7/mercurial/scmutil.py", line 1023, in __get__
File "/Applications/TortoiseHg.app/Contents/Resources/lib/python2.7/mercurial/localrepo.py", line 706, in changelog
File "/Applications/TortoiseHg.app/Contents/Resources/lib/python2.7/mercurial/changelog.py", line 280, in __init__
File "/Applications/TortoiseHg.app/Contents/Resources/lib/python2.7/mercurial/revlog.py", line 668, in __init__
RevlogError: unknown version (2) in revlog 00changelog.i