[ANN] Persona: an extension for managing repository-local identities
Marc Simpson
marc at 0branch.com
Tue Aug 23 14:06:47 UTC 2011
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.
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20110823/afba1b55/attachment-0002.html>
More information about the Mercurial
mailing list