Return to Snippet

Revision: 16351
at August 1, 2009 09:52 by geekiuscaesar


Initial Code
hg status|grep ^?|sed -e 's/\\/\//g'|awk '{print $2}'|xargs rm

Initial URL
otr4sipcomm.blogspot.com

Initial Description
sed is required because hg status returns paths with \ (backslash) instead of / (slash). I'm using the Windows version of Mercurial, in a linux version you can omit the sed part.

Initial Title
Remove files by status in svn/mercurial

Initial Tags
svn

Initial Language
Bash