Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mercurial: list users that have worked on repository

Tags:

mercurial

I'm using Mercurial through TortoiseHG. I would like to see what users have worked on a repository. Preferrably just a list of unique user names. However it's not practical to scroll down the (long) list of revisions and noting each name. I could probably solve this with grep but I'm on windows and prefer to avoid installing Cygwin or similar. Is it possible, given these constraints?

like image 217
David Avatar asked Apr 22 '13 08:04

David


People also ask

What does hg commit do?

hg commit creates a snapshot of the changes to 1 or more files in the local repository. Always write a log message when committing changes. hg diff displays differences between revisions. hg revert recovers old versions of files.

What is hg repository?

Strictly speaking, the term repository refers to the directory named . hg (dot hg) in the repository root directory. The repository root directory is the parent directory of the . hg directory. Mercurial stores its internal data structures – the metadata – inside that .

What is hg command?

Description. The hg command provides a command line interface to the Mercurial system.


1 Answers

If you have PowerShell installed then this does the trick:

hg log --template "{author}\n" | Select -Unique

It takes two or three seconds for my current repository of about 5500 changesets.

like image 61
Steve Kaye Avatar answered Oct 21 '22 23:10

Steve Kaye