Create a gist now

Instantly share code, notes, and snippets.

Gives mercurial commit count for each file in a directory
dir -r | % { New-Object PSObject -Property `
@{ `
Count = hg log -q $_.Name | wc -l; `
FileName = $_.Name; `
}} `
| % { $_.Count + ' -- ' + $_.FileName; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment