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

jens.lund at nordea.com jens.lund at nordea.com
Fri Nov 6 06:55:41 CST 2009


> -----Original Message-----
> From: Benoit Boissinot [mailto:benoit.boissinot at ens-lyon.org] 
> 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?

Yes:

g36565 at dkd1ws0030 ~/tmp/othertest/hgtest
$ hg root
v:\tmp\othertest\hgtest

Note, the first checkin works fine. I can check in other files fine as
well.

Jens



More information about the Mercurial mailing list