ui.username confusion

Augie Fackler raf at durin42.com
Fri May 25 13:00:07 UTC 2018



> 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.

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

> TIA
> 
> --chuck
> 
> [640] hg init .
> [641] hg showconfig ui.username
> [642] echo -e "[ui]\nusername = Jane Doe <jdoe at example.com>" > .hg/hgrc
> [643] hg showconfig ui.username
> Jane Doe <jdoe at example.com>
> [644] touch first
> [645] hg commit -A -m'First commit'
> adding first
> [646] hg init --mq
> [647] hg qnew first_patch
> [648] touch second
> [649] hg qref
> [650] hg qser
> first_patch
> [651] hg commit --mq
> abort: no username supplied
> (use 'hg config --edit' to set your username)
> [652] hg version
> Mercurial Distributed SCM (version 4.6)
> (see https://mercurial-scm.org for more information)
> 
> Copyright (C) 2005-2018 Matt Mackall and others
> This is free software; see the source for copying conditions. There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> [653] hg log -v
> changeset:   1:59641a386363
> tag:         first_patch
> tag:         qbase
> tag:         qtip
> tag:         tip
> user:        Jane Doe <jdoe at example.com>
> date:        Thu May 24 11:58:29 2018 -0700
> description:
> [mq]: first_patch
> 
> 
> changeset:   0:170ef06cbb8f
> tag:         qparent
> user:        Jane Doe <jdoe at example.com>
> date:        Thu May 24 11:57:49 2018 -0700
> files:       first
> description:
> First commit
> _______________________________________________
> Mercurial mailing list
> Mercurial at mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial




More information about the Mercurial mailing list