2012-11-07 40 views
0

我試圖啓用Mercurial附帶的gpg擴展來簽署我的更改集。水銀錯誤:導入擴展失敗hgext.gpg

我現在用的是以下兩行,以使在hgrc文件擴展名: [擴展]

hgext.gpg= FILEPATH 

後,我已經添加了這些線路的hgrc文件,我收到以下錯誤:

***Failed to import extension hgext.gpg from ...location...: Non-ASCII character '\xf3' in file ...location... on line 1, 
but no encoding declared; see http://www.python.org/dev/peps/pep-0263.html for details 

有人可以幫我嗎?

+1

而且確實在事實上該文件包含非-ascii字符? –

回答

1

OK,我讀GPG Extension Wiki

This extension is currently being distributed along with Mercurial

配置節還

Configure your .hgrc to enable the extension by adding following lines:

[extensions] 
hgext.gpg= 

(見與你差)