Checkin gives error "abort: There is no Mercurialrepositoryhere (.hg not found)!" on TortoiseHg/Windows version

Matt Mackall mpm at selenic.com
Fri Nov 6 08:46:07 CST 2009


On Fri, 2009-11-06 at 15:23 +0100, jens.lund at nordea.com wrote:
> > From: Benoit Boissinot [mailto:benoit.boissinot at ens-lyon.org] 
> > Ok, does hg --traceback give more information then?
> 
> A bit more:
> 
> g36565 at dkd1ws0030 ~/tmp/othertest/hgtest
> $ hg --traceback ci -m "Second version, fails"
> Traceback (most recent call last):
>   File "mercurial\dispatch.pyc", line 43, in _runcatch
>   File "mercurial\dispatch.pyc", line 441, in _dispatch
> RepoError: There is no Mercurial repository here (.hg not found)
> abort: There is no Mercurial repository here (.hg not found)!

Wow, that's broken.

What's happening is that when we're creating the repository object, it's
reporting a repository error (probably something like "interrupted
transaction") and we're swallowing that error and trying to guess where
the repo is. This all happens way before we even attempt the actual
second commit. So I would expect a bunch of other commands to also be
broken (status, parents, etc.).

What files are in your .hg directory?

-- 
http://selenic.com : development and support for Mercurial and Linux




More information about the Mercurial mailing list