sapling/tests/test-extension-hgext-prefix.t
Jun Wu fd1b928138 extensions: work with 'hgext.' prefix
Summary:
Be compatible with `hgext.` or `hgext/` prefix. But print a warning saying it's
deprecated.

Reviewed By: DurhamG

Differential Revision: D13490362

fbshipit-source-id: ef13bd57a74be810df409af18a6259bc7b2b6dad
2018-12-17 12:53:12 -08:00

15 lines
555 B
Perl

Using 'hgext.' prefix triggers the warning.
$ hg init --config extensions.hgext.rebase=
'hgext' prefix in [extensions] config section is deprecated.
(hint: replace 'hgext.rebase' with 'rebase')
If the location of the config is printed.
Despite the warning, the extension is still loaded.
$ setconfig extensions.hgext.rebase=
$ hg rebase -s 'tip-tip' -d 'tip'
'hgext' prefix in [extensions] config section is deprecated.
(hint: replace 'hgext.rebase' with 'rebase' at $TESTTMP/.hg/hgrc:2)
empty "source" revision set - nothing to rebase