AttributeError: 'ContentType' object has no attribute 'file_path
Dirkjan Ochtman
dirkjan at ochtman.nl
Mon Jan 19 12:30:04 UTC 2009
On Sun, Jan 18, 2009 at 19:31, rt <rupert.thurner at gmail.com> wrote:
> in http://freehg.org/u/certik/freehg/file/0ed08f5af30f/repos/models.py
> 149 if not os.path.exists(repo.file_path):
> 150 os.makedirs(repo.file_path)
> 151 hg.repository(ui.ui(), repo.file_path, create=True)
The second argument to hg.repository() should usually be the path to
the repo (excluding the .hg dir). Obviously something goes wrong
there.
But I suggest that freehg is not part of hg, so that other than
explicit API questions (that aren't answered in the wiki page about
the API), should probably not be on the mercurial-devel list.
Cheers,
Dirkjan
More information about the Mercurial-devel
mailing list