Mercurial error: abort no username supplied

后端 未结 10 1591
生来不讨喜
生来不讨喜 2021-01-30 01:01

Problem on WindowsXP (likely will happen on all Win installs), first time using Mercurial. I found the answer in an inobvious place so I\'m asking/answering the question myself

10条回答
  •  自闭症患者
    2021-01-30 01:46

    Here is what worked like a charm for me on Windows XP:

    1. Go to the folder C:\Program Files\Mercurial\hgrc.d assuming you have installed Mercurial to C:\Program Files\Mercurial\.
    2. You should see a Mercurial.RC file in there.
    3. Copy the file to C:\Documents and Settings\ [USERNAME]\
    4. Rename Mercurial.RC to Mercurial.ini.
    5. Edit the [ui] section like so:

      [ui]

      ; editor used to enter commit logs, etc. Most text editors will work.

      editor = notepad

      verbose = True

      username = userEmail@domain.com

提交回复
热议问题