Script to add (and cache) username
Dave S
snidely.too at gmail.com
Tue Apr 22 19:03:59 UTC 2014
(Copying the list)
On Tue, Apr 22, 2014 at 12:03 PM, Dave S <snidely.too at gmail.com> wrote:
> On Tue, Apr 22, 2014 at 11:34 AM, Marcin Kasperski <
> Marcin.Kasperski at mekk.waw.pl> wrote:
>
>> Matt Mackall <mpm at selenic.com> writes:
>>
>> > On Wed, 2014-03-26 at 20:09 +0300, anatoly techtonik wrote:
>> >> Hi,
>> >>
>> >> Does anybody has a script to prompt and add hg username to the nearest
>> >> .hg/hgrc config?
>> >
>> > You do know about ~/.hgrc, right? The vast majority of users only do
>> > this once and never think about it again.
>>
>> Management of multiple identities (for example corporate vs private) is
>> a bit of hassle…
>>
>> { As such projects usually end up in different directories, something like
>> „directory-tree-local .hgrc could help noticeably, not only for
>> username, but also for things like [extra] extensions, some auth
>> settings, even http proxy. Considering mercurial already merges
>> settings from local repo, ~/.hgrc and /etc/mercurial/, maybe adding
>> .hgrc's lying on the path upwards from working directory toward $HOME
>> would not be that horribly difficult? }
>>
>
> I'm not sure it helps with the multiple identities, but does the projrc
> extension help with the other aspects?
>
> <http://mercurial.selenic.com/wiki/ProjrcExtension>
>
> /dps
>
>
--
test signature -- please apply at front gate on Tuesdays only.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20140422/6e40364b/attachment-0002.html>
More information about the Mercurial
mailing list