将hg strip添加到hgrc配置文件

问题描述 投票:0回答:1

我添加了strip extension hgrc config。 (苹果系统)

cd ~
nano .hgrc

[extension]下添加了一行:

strip =

即使流浪汉重启或mac重启没有帮助,该命令仍然无法辨认。

hgrc文件:

[ui]
        # name and email, e.g.
        # username = Jane Doe <[email protected]>
        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
mercurial mercurial-extension
1个回答
4
投票

你应该更换

    [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 =

(您取消注释了实际的扩展启用行和旨在保持注释掉的解释性注释)

© www.soinside.com 2019 - 2024. All rights reserved.