Добавление hg strip в файл конфигурации hgrc - PullRequest
1 голос
/ 21 марта 2019

Я добавил расширение полосы конфигурации hgrc. (MAC OS)

cd ~
nano .hgrc

под [extension] добавлена ​​строка:

strip =

Даже перезапуск или перезапуск Mac не помогли, команда все еще не распознается.

hgrc file:

[ui]
        # name and email, e.g.
        # username = Jane Doe <jdoe@example.com>
        username = ....>
        ignore=~/.hgignore_global

        # We recommend enabling tweakdefaults to get slight improvements to
        # the UI over time. Make sure to set HGPLAIN in the environment when
        # writing scripts!
        # tweakdefaults = True

        # uncomment to disable color in command output
        # (see 'hg help color' for details)
        # color = never

        # uncomment to disable command output pagination
        # (see 'hg help pager' for details)
        # paginate = never

        [extensions]
        uncomment these lines to enable some popular extensions
        (see 'hg help extensions' for more info)

        churn =
        color =
        strip =

        [color]
        status.modified = blue bold underline red_background
        status.added = green bold
        status.removed = red bold blue_background
        status.deleted = cyan bold underline
        status.unknown = magenta bold underline

1 Ответ

4 голосов
/ 22 марта 2019

Вы должны заменить

    [extensions]
    uncomment these lines to enable some popular extensions
    (see 'hg help extensions' for more info)

    churn =
    color =
    strip =

на

    [extensions]
    # uncomment these lines to enable some popular extensions
    # (see 'hg help extensions' for more info)

    churn =
    color =
    strip =

(вы раскомментировали как фактические строки расширения расширения, так и пояснительный комментарий, который должен был остаться закомментированным)

...