Ho delete 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
hg removedeletes only those files that have already been committed. AFAIK, there is no command in mercurial to delete unplayable files.
hg remove
To find out how file templates work in mercurial, run hg help patterns.
hg help patterns
hg status
hg remove -I **.bak -I **.orig
hg purge:
hg purge
, Mercurial. uncommitted - ., :: "?" "hg": Mercurial , .:( --all), ( "hg add" ), ., , . , , -print.
, Mercurial. uncommitted - .
, :
:
, .
, , . , , -print.
D:\workspace>hg purge -I **/*.orig --all
D:\workspace>hg purge -I **/*.bak --all
, , . , , --print.
--print