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

Benoit Boissinot benoit.boissinot at ens-lyon.org
Fri Nov 6 06:44:28 CST 2009


On Fri, Nov 06, 2009 at 11:38:12AM +0100, jens.lund at nordea.com wrote:
> 
> Hi
> 
> I have come across an error where checking in a large binary file gives
> me the error message "abort: There is no Mercurial repository here (.hg
> not found)!" when I am clearly in the right directory.
> 
> I am reproducing this on Windows with the hg command line program from
> the TortoiseHg installer under Cygwin. I cannot reproduce the problem
> under Linux with neither version 1.1.2 or version
> 1.3.1+295-1de5ebfa5585. The simplest case I have been able to come up
> with involves two versions of the same file, where the second checkin
> fails:

> $ cat dotest.sh 
> #!/usr/bin/sh
> echo "Version info:"
> hg version
> echo "Init repo:"
> hg init
> cp sleipner_1.xls sleipner.xls
> echo "Add file:"
> hg add sleipner.xls
> echo "Checkin first version:"
> hg ci -m "First version"
> cp sleipner_2.xls sleipner.xls
> echo "Checkin second version:"
> hg ci -m "Second version, fails!"

Does `hg root` works here?

-- 
:wq


More information about the Mercurial mailing list