[ANN] Persona: an extension for managing repository-local identities
Kevin Bullock
kbullock+mercurial at ringworld.org
Tue Aug 23 14:52:49 UTC 2011
On Aug 23, 2011, at 9:06 AM, Marc Simpson wrote:
> Hi all,
>
> I'm writing to announce the `persona` extension, available at:
>
> http://hg.0branch.com/hg-persona
>
> 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.
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.
pacem in terris / mir / shanti / salaam / heiwa
Kevin R. Bullock
> Usernames can be provided verbatim:
>
> $ hg persona -n "Firstname Lastname <firstname at domain.com>"
>
> or aliased in `~/.hgrc` under the `persona` section:
>
> [persona]
> home = Firstname Lastname <firstname at home.domain>
> work = Firstname Lastname <firstname.lastname at work.domain>
>
> $ hg persona -n personal
> $ hg persona -n work
>
> To list all known personas simply run
>
> $ hg persona
>
> The extension also adds a `--persona` option to clone:
>
> $ hg clone --persona work src dest
>
> (Note that the above will only work if `dest` is a local repository.)
>
> If anyone gets a chance to try this out, I'd love to hear feedback.
> Also, suggestions for improvements / bug reports would be
> appreciated.
>
> Best,
> Marc
>
> PS -- Word of warning: comments in your repository's hgrc will be
> lost after setting a `persona` though the extension will try to
> create an .hg/hgrc_bak file before overwriting it.
> _______________________________________________
> Mercurial mailing list
> Mercurial at selenic.com
> http://selenic.com/mailman/listinfo/mercurial
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial/attachments/20110823/039972eb/attachment.html>
More information about the Mercurial
mailing list