ui.username confusion

Chuck Tuffli ctuffli at gmail.com
Fri May 25 15:27:17 UTC 2018


On Fri, May 25, 2018 at 6:00 AM, Augie Fackler <raf at durin42.com> wrote:
>
>
>> On May 24, 2018, at 3:06 PM, Chuck Tuffli <ctuffli at gmail.com> wrote:
>>
>> I need to use a different user name in a specific repository and have
>> set that up in the repository's .hg/hgrc file. While commit picks this
>> up, there is an error when using the mq option. Is this a known issue?
>
> Yes, this is works-as-intended: .hg/hgrc only matters for that specific repo, but when you specify --mq hg uses .hg/mq/ as the repo, so it’ll be looking at .hg/mq/.hg/hgrc instead of .hg/hgrc.

Ah, ok, that makes sense. And updating the username in the mq's hgrc
has the effect I wanted.

> Is there a particular reason you don’t want to set a global user?

Actually, I do set a global user, but some projects want commits to
use an email address associated with the project. The example I posted
made the issue more obvious. Thank you so much for your help!

--chuck



More information about the Mercurial mailing list