Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

hg remove -I PATTERN, how it works?

Ho to remove all *.bak or *.orig files in mercurial?

example:

C:\dev\web>hg stat
? Views\System\UnderConstruction.cshtml.bak
? Views\Topic\Index.cshtml.bak
? Views\Topic\MasterPage.cshtml.bak
? Web.config.bak

C:\dev\web>hg rem -I *.bak
abort: no files specified
like image 576
Alexei Avatar asked Nov 08 '11 06:11

Alexei


1 Answers

hg remove only removes files that have already been committed. AFAIK, there is no command in mercurial to remove untracked files.

To learn how file patterns work in mercurial, run hg help patterns.

like image 129
daniel kullmann Avatar answered Sep 27 '22 03:09

daniel kullmann