Re: Issue reading configuration from .hg/hgrc inside project
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? /Mads ___ kallithea-general mailing list kallithea-general@sfconservancy.org https://lists.sfconservancy.org/mailman/listinfo/kallithea-general
Re: Issue reading configuration from .hg/hgrc inside project
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 ___ kallithea-general mailing list kallithea-general@sfconservancy.org https://lists.sfconservancy.org/mailman/listinfo/kallithea-general
Re: Issue reading configuration from .hg/hgrc inside project
On 4/21/21 1:50 PM, 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 . A fix has been pushed to the stable branch: https://kallithea-scm.org/repos/kallithea/changeset/c9834271cd066d4f734b0f7c56e94866057a789f Some additional cleanup in this area has been pushed to the default branch and will probably soon be released in 0.7 . Thanks for the report. /Mads ___ kallithea-general mailing list kallithea-general@sfconservancy.org https://lists.sfconservancy.org/mailman/listinfo/kallithea-general