[issue3112] easy command to create per-repository config with username

techtonik bugs at mercurial.selenic.com
Fri Nov 18 08:11:05 CST 2011


New submission from techtonik <techtonik at gmail.com>:

I don't know about you, but I make occasional patches to different projects 
from different servers/machines quite often and it is rather annoying to 
enter my username every time or maintain .hgrc on each (virtual) machine.

I'd like to propose an enhancement for Mercurial to add command that will 
create default per-clone config file. The usage scenario now:

$ hg ci
abort: no username supplied (see "hg help config")
$ hg help config
...stripped 50K! of help that doesn't fit my screen... 
...[ui] section for copy/pasting doesn't fit into scroll buffer on Fedora...

Expected:

$ hg ci
abort: no username supplied (see "hg help config username")
$ hg help config username
...bla-bla-bla...

      [ui]
      username = Firstname Lastname <firstname.lastname at example.net>

To create clone-specific config file with your username and password, 
execute:
      
      hg config username

/Expected.


The last command can by anything that is easy to type and what asks for 
username automatically or inserts template automatically and opens the 
editor.

----------
messages: 18109
nosy: techtonik
priority: wish
status: unread
title: easy command to create per-repository config with username

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue3112>
____________________________________________________


More information about the Mercurial-devel mailing list