Skip to content

Instantly share code, notes, and snippets.

@nafSadh
Created September 2, 2016 18:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nafSadh/12a1a4e7ea966fbe237933f8ed34cd1f to your computer and use it in GitHub Desktop.
Save nafSadh/12a1a4e7ea966fbe237933f8ed34cd1f to your computer and use it in GitHub Desktop.
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