1. Josh Carrier
  2. phpHgAdmin
  3. Issues
Issue #22 new

blank values in the repository config result in invalid hgrc files

erh
created an issue

I tried creating a new repository, and then browsing to it. That resulted in an error from mercurial due to value values in the hgrc file:

{{{ [Thu Mar 17 13:24:56 2011] [error] [client 127.0.0.1] ConfigError, referer: https://localhost:20443/admin/hgrepo/browse/blue1 [Thu Mar 17 13:24:56 2011] [error] [client 127.0.0.1] : , referer: https://localhost:20443/admin/hgrepo/browse/blue1 [Thu Mar 17 13:24:56 2011] [error] [client 127.0.0.1] web.allowpull not a boolean (''), referer: https://localhost:20443/admin/hgrepo/browse/blue1 [Thu Mar 17 13:24:56 2011] [error] [client 127.0.0.1] , referer: https://localhost:20443/admin/hgrepo/browse/blue1 [Thu Mar 17 13:24:56 2011] [error] [client 127.0.0.1] Premature end of script headers: hgwebdir.cgi, referer: https://localhost:20443/admin/hgrepo/browse/blue1 }}}

Editing the repository through hgadmin, and saving it w/o filling anything in ends up filling the allowpull line, which allows things to work, but there's no way to omit a config setting entirely to allow the defaults to take effect.

Comments (0)

  1. Log in to comment