[Bug 6922] New: Add commands for extension management

mercurial-bugs at mercurial-scm.org mercurial-bugs at mercurial-scm.org
Fri Oct 4 15:04:20 UTC 2024


https://bz.mercurial-scm.org/show_bug.cgi?id=6922

            Bug ID: 6922
           Summary: Add commands for extension management
           Product: Mercurial
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: feature
          Priority: wish
         Component: Mercurial
          Assignee: bugzilla at mercurial-scm.org
          Reporter: pierre.augier at univ-grenoble-alpes.fr
                CC: mercurial-devel at mercurial-scm.org
    Python Version: ---

Modern Mercurial heavily rely on extensions, in particular evolve and topic.

For most projects on foss.heptapod.net, a user cannot try a feature developed
in a topic without the topic extension. So a user who just filled a issue has
to install Mercurial with topic enable to try a potential fix. Currently this
is still not that simple.

For general use of Mercurial to contribute to projects using Git, we need
hg-git. 

Installing and enabling evolve, topic and hg-git should be very simple and it
should be possible to do it in a single simple command.

I'd like to be able to write something like

"Just do this

```
pipx install mercurial
hg admin-extension --enable topic
```
"

and that Mercurial would be smart enough to do what is needed so that topic is
enabled.

I quote Pierre-Yves David about this possible feature:

"
As we discussed last year in Paris, I believe it would be a reasonable amount
of work  to add a couple of command dedicated to extensions management to
Mercurial. Since Mercurial known how and where it is installed, it is best
suited to deal with that.

I did a very crude PoC of that when I got back from vacation
https://foss.heptapod.net/mercurial/mercurial-devel/-/merge_requests/930

Note that when combining this idea with automated config writing discussed
later in the this email [https://bz.mercurial-scm.org/show_bug.cgi?id=6920],
such command could both install and enable an extension in a single command.
"

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list