$ mkdir foo
$ cd foo
$ hg init .
$ hg log
abort: Is a directory
$ hg history
abort: Is a directory
Darwin Host.local 9.6.1 Darwin Kernel Version 9.6.1: Wed Dec 10 10:38:33 PST 2008; root:xnu-1228.9.75~3/RELEASE_I386 i386
$ hg --version
Mercurial Distributed SCM (version 1.2.1)
$ python --version
Python 2.5.4
(all installed via macports)
Thoughts? The google gives us nothing.
Update:
(as root):
$ hg init /tmp/foo
$ cd /tmp/foo; hg log
(works)
(as user):
$ hg init /tmp/bar
$ cd /tmp/bar; hg log
abort: Is a directory
So Travis was right (see comments) it does look like a permission problem somewhere but where? This is a stock install of Leopard barely a week old and stock installs of macport versions of python and mercurial. I hope that isn't mercurial's idea of a good error message when it has a permission problem.
2nd update (from dkbits suggestions below):
$ sudo dtruss hg log
[snip]
...
stat("/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site- packages/mercurial/templates/gitweb\0", 0xBFFFC7DC, 0x1000) = 0 0
open_nocancel("/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/mercurial/templates/gitweb\0", 0x0, 0x1B6) = 3 0
fstat(0x3, 0xBFFFC900, 0x1B6) = 0 0
close_nocancel(0x3) = 0 0
write_nocancel(0x2, "abort: Is a directory\n\0", 0x16) = 22 0
Also, the temp directory is where you expected it to be. Permissions look okay on it.