2012-02-21 6 views
1

のMercurialを実行しているとき、私はこのエラーを取得:Mercurialでユーザー名を設定するにはどうすればよいですか?

[email protected]:gem5$ hg qnew my_p.diff 
abort: no username supplied (see "hg help config") 

hg help configは言う:

The configuration files use a simple ini-file format. A configuration file 
consists of sections, led by a "[section]" header and followed by "name = 
value" entries: 

    [ui] 
    username = Firstname Lastname <[email protected]> 
    verbose = True 

しかし、そのiniファイルは何ですか?

dirunderhgcontrol/.hg/.hgrc

は、あなたがに記載された情報(UI、ユーザ名、冗長を...)を追加し、あなたのホームディレクトリのいずれかまたは問題のリポジトリディレクトリ内.hgrcファイルを作成し、Linux上であなたを仮定

答えて

3

あなたの質問を新しいファイルに書いてから試してみてください。

5

hg help config

These files do not exist by default and you will have to create the appropriate configuration files yourself: global configuration like the username setting is typically put into "%USERPROFILE%\mercurial.ini" or "$HOME/.hgrc" and local configuration is put into the per-repository "/.hg/hgrc" file.

関連する問題