Search code examples
version-controlmercurialhgweb

Mercurial - how do I populate repository descriptions for hgwebdir.cgi?


Currently if I specify a description in hgwebdir.config it shows up the same for each repository. I want to have a unique name for each repository. Where and how do I set this?

My hgwebdir.config looks like this at present:

[web]
style = Gitweb
contact = BrianLy
description =  Same description for all. I want a unique description.
allow_archive = gz, zip, bz2

[paths]
/ = /Users/brianly/sandbox/*

Solution

  • Inside each repository itself is (or can be) a .hg/hgrc file. Put the [web] section in there with a description entry. See the hgrc webpage for all the places that config entries can go.