将 hg strip 添加到 hgrc 配置文件

PKD*_*iyy 1 mercurial mercurial-extension

我添加了条带扩展 hgrc 配置。(苹果系统)

cd ~
nano .hgrc
Run Code Online (Sandbox Code Playgroud)

[extension]添加的行下:

strip =
Run Code Online (Sandbox Code Playgroud)

即使 vagrant restart 或 mac restart 也没有帮助,命令仍然无法识别。

hgrc 文件:

[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
Run Code Online (Sandbox Code Playgroud)

dur*_*n42 5

你应该更换

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

    churn =
    color =
    strip =
Run Code Online (Sandbox Code Playgroud)

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

    churn =
    color =
    strip =
Run Code Online (Sandbox Code Playgroud)

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