This is an archive of the discontinued Mercurial Phabricator instance.

command: reintroduce support for commands starting with ^ (issue6005)
AbandonedPublic

Authored by lothiraldan on Oct 22 2018, 6:24 AM.

Details

Reviewers
None
Group Reviewers
hg-reviewers
Summary

Changeset fa88170c10bb added a new flag for declaring commands that should be
on the shortlist.

While being a good API change, we should allow extensions author declaring new
commands time to update to this new API.

Reintroduce support for commands starting with ^ to appears in the shortlist
with a devel warning. The support will be dropped in 5.0 release.

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

lothiraldan created this revision.Oct 22 2018, 6:24 AM
In D5179#77391, @yuja wrote:

Oups, so sorry I missed it in my mailbox.

Do we have performance concerns around the deprecation, how often is called loadcmdtable? My gut feeling is telling me it shouldn't matter but I would prefer to be sure.

yuja added a comment.Oct 22 2018, 9:28 AM
Do we have performance concerns around the deprecation, how often is called `loadcmdtable`? My gut feeling is telling me it shouldn't matter but I would prefer to be sure.

I don't think my change would cause measurable slowdown. It's called once
per extension.

lothiraldan abandoned this revision.Oct 22 2018, 9:39 AM
In D5179#77396, @yuja wrote:
Do we have performance concerns around the deprecation, how often is called `loadcmdtable`? My gut feeling is telling me it shouldn't matter but I would prefer to be sure.

I don't think my change would cause measurable slowdown. It's called once
per extension.

Ok then your patch is much better as we have access to the ui object. Abandoning my revision.