Hint for setting the username

Arne Babenhauserheide arne_bab at web.de
Tue Jul 9 15:30:43 CDT 2013


Am Dienstag, 9. Juli 2013, 13:29:49 schrieb Matt Mackall:
> > +                               '(add section [ui] with username = YOURNAME in %s)')%scmutil.userrcpath()[0])
> 
> We recommend using email addresses?

I left it out because I wasn’t sure about the maximum length of the commandline output. And had no time to read up.

> It's also worth noting that a non-negligible percentage of n00bs balk at
> the idea of creating a brand new config file.

Fixing this will require config file editing.

I would be all for adding a config command which simply allows querying for config values and starting an editor. Maybe with nicely commented example content, if there is no file, yet. IIRC that also was the conclusion about the best solution when last discussed this. 

hg config --edit # edit the repo config
hg config --edit --user # edit the user config
hg config --edit --system # edit the system config
hg config --files # list the rc files. --list could also mean listing the values.

But I cannot do it at the moment, and I don’t know whether I will be able to do it in the next months since my free time has grown really short.

All the while this huge new-user-turnoff sits here even though there would be a really simple fix which will make it much easier for most new users.
(that fix is what you proposed as temporary fix in the last discussion)

Best wishes,
Arne
--
Konstruktive Kritik: 

- http://draketo.de/licht/krude-ideen/konstruktive-kritik

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 316 bytes
Desc: This is a digitally signed message part.
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20130709/6bd9d503/attachment.pgp>


More information about the Mercurial-devel mailing list