Mercurial > public > src > phphgadmin
diff admin/application/libraries/hgphp.php @ 9:97bc7635ce3f
HGRC read properties, and prepped for write
author | joshjcarrier |
---|---|
date | Thu, 13 May 2010 19:40:22 -0700 |
parents | 6215bb22f3d3 |
children | 0e7e4cead7c9 |
line wrap: on
line diff
--- a/admin/application/libraries/hgphp.php Thu May 13 17:43:10 2010 -0700 +++ b/admin/application/libraries/hgphp.php Thu May 13 19:40:22 2010 -0700 @@ -136,6 +136,7 @@ } + // TODO function update_repository() {} @@ -196,7 +197,12 @@ } } - + function stat_repository($project_name) + { + // FIXME permission check + + return $this->_ci->hgconf2ini->getHGRC($project_name); + } /** * Public accessors - permissions @@ -224,7 +230,7 @@ } $cd = $this->_repositories_rel_dir; - mkdir($cd . $repository_name . '/.hg/store/data/', 755, TRUE); + mkdir($cd . $repository_name . '/.hg/store/data/', 0755, TRUE); // create hgrc return $this->_ci->hgconf2ini->touchHGRC($repository_name);