hg (mercurial) how to delete all unkonwn file or unversion file?

hg (mercurial) how to delete all unkonwn file or unversion file?

On windows

for /F %i in ('hg st -nu') do del %i


On mac
hg st -nu|xargs -I \{ rm \{

这里\{是在命令行中输入的,一个代替字符串,就是前面列表中文件的名称

posted on 2010-05-24 14:08  不是程序  阅读(259)  评论(0)    收藏  举报

导航