Mercurial & PowerShell - Delete files by status


/ Published in: Other
Save to your folder(s)

Inspired by Jagadish and his post [AWK equivalent in Windows Powershell](http://windows-powershell-scripts.blogspot.com/2009/06/awk-equivalent-in-windows-powershell.html).


Copy this code and paste it in your HTML
  1. hg st | %{ del $_.Split('?')[1].trim(); }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.