Skip to content

Instantly share code, notes, and snippets.

@xavierzwirtz
Created October 27, 2015 17:21
Show Gist options
  • Save xavierzwirtz/6c68103c133383fa36f4 to your computer and use it in GitHub Desktop.
Save xavierzwirtz/6c68103c133383fa36f4 to your computer and use it in GitHub Desktop.
hg log --rev 'merge()' --template '{node}\n' `
| foreach-object { @{ 'id' = $_; 'files' = hg log --rev $_ --template '{files}'; } } `
| Where-Object { $_.files -eq $null } | ForEach-Object { $_.id }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment