[ANN] Persona: an extension for managing repository-local identities
Marc Simpson
marc at 0branch.com
Tue Aug 23 15:19:55 UTC 2011
Hi Kevin,
On 23 Aug 2011, at 15:52, Kevin Bullock wrote:
> On Aug 23, 2011, at 9:06 AM, Marc Simpson wrote:
>
>> It's an attempt to provide an easy way to set `ui.username` on a
>> repository by repository basis.
>
> ...but note that you don't _need_ an extension to set ui.username on a per-repository basis. Just put
>
> [ui]
> username = My Name <some at email.com>
>
> in your repository's .hg/hgrc.
Right, you don't need the extension if that's all you want to do (unless you
find this fiddly and repetitive).
> Looks like this extension just writes into the repo's .hg/hgrc for you (blarg), and provides a way to propagate the ui.username value when cloning (interesting) as well as aliases for usernames.
That seems like a fair summary, though I find the first behaviour quite handy.
For example,
$ hg clone src dest
[later:]
$ cd dest
$ hg persona
[oops, wrong username]
$ hg persona -n work
Regarding use of the extension _without_ aliases: I agree that it's not as
useful but it seemed sensible to support explicit username specification
for the sake of completeness. (It's also quite handy on clone as you point
out.)
Best,
Marc
More information about the Mercurial
mailing list