Posted By

geekiuscaesar on 08/01/09


svn mass mercurial operation

Versions (?)

Remove files by status in svn/mercurial

 / Published in: Bash


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.

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

Report this snippet  

You need to login to post a comment.