/ home文件夹中的hgrc扩展名无法识别

时间:2013-08-05 04:15:10

标签: mercurial dvcs

我将convert扩展名(没有路径)添加到我的/home/user/.hgrc文件中,但它无效:

$ hg convert source_r56 source_r56_fixed --filemap exclude.filemap
hg: unknown command 'convert'
'convert' is provided by the following extension:

    convert  import revisions from foreign VCS repositories into Mercurial

use "hg help extensions" for information on enabling extensions

我运行了“hg help extensions”并意识到文件中没有启用的扩展显示为已启用。

我尝试在source_r56 / .hg / hgrc中设置它也无济于事。

更新

$ cat ~/.hgrc
[ui]
username = jetimms <jetimms@jetimms>
verbose = True
[extentions]
convert =
progress = 
rebase =
[alias]
ssh = ssh -C
$ cat ./.hg/hgrc
[paths]
default = /home/jetimms/source
[extentions]
convert =
$ 

(顺便说一句:source_r56是从名为“source”的存储库中克隆的。)

也许为了更好地回答关于我是否遇到与其他扩展相同的问题的问题,我已经包含了关于禁用扩展的“hg帮助扩展”的部分结果。这里我只注意上面〜/ .hgrc中列出的那些。如评论中所述,我没有使用任何其他扩展。

$ hg help extensions
Using additional features
...
    disabled extensions:
...
     convert     import revisions from foreign VCS repositories into Mercurial
...
     progress    show progress bars for some actions
...
     rebase      command to move sets of revisions to a different ancestor
$ 

1 个答案:

答案 0 :(得分:1)

您在.hgrc中拼错了单词扩展名。将[extentions]更改为[extensions]即可设置。