tags:

views:

177

answers:

2

I am new to Mercurial and after a cleanup of the image folder in my project, I have a ton of files showing with ! in the 'hg status'. I can type a 'hg forget ' for each, but there must be an easier way.

So how can I tell mercurial to forget about all the removed (status = !) files in a folder?

+3  A: 

You can try:

hg forget -I '*'

in order to include all files in your forget command.

VonC
be careful, that won't catch files beginning with a dot in the current directory.
Ry4an
+4  A: 

If you're also okay with adding any files that exist and aren't ignored then:

hg addremove

would a popular way to do that.

Ry4an
True, adding untracked files and marking missing files as removed in one shorthand command. +1
VonC