Issue reading configuration from .hg/hgrc inside project

Felipe Cardoso Resende felipecardoso.fcr at gmail.com
Wed Apr 21 15:34:49 UTC 2021


On Wed, Apr 21, 2021 at 01:50:52PM +0200, Mads Kiilerich wrote:
> On 4/21/21 2:09 AM, Felipe Cardoso Resende wrote:
> > Hi,
> > 
> > I'm experimenting with kallithea but I'm having trouble making it
> > read from the .hg/hgrc inside the project. Looking through
> > the history, I found the revision 802fdeefc8cc linking to
> > Issue #246 [1] that changes how the configuration is read.
> > 
> > I looked into mercurial.ui.ui.readconfig and it expects a filename instead
> > of the repo_path. There is a Note there that seems to imply that .hg/hgrc will
> > be read elsewhere, but I'm not that familiar with mercurial.
> > 
> > Does anyone knows if its really a bug or if I'm missing something?
> 
> 
> Yes, it could seem like I made a mistake in
> https://kallithea-scm.org/repos/kallithea/changeset/f83326e2e66c .
> 
> What hgrc settings would you like to use with Kallithea? What is your test
> case that shows the problem?


Hi Mads,

I'd like to configure it to be a non-publishing repository and enable the evolve 
extension. The test case is:

1. Create e new repository through the web interface
2. Configure it to be non-publishing:

        $ cd path_to_repo
        $ hg config --local

and add

        [phases]
        publish = false

        [extensions]
        evolve =

3. Create a new "local" repository with the same configuration
4. Push commits to the repository created at step 1.

Felipe


More information about the kallithea-general mailing list