Question: I am designing a jsp web page for mobile web. I need to uniquely identify the user device (say: IMEI,or any other Unique id) such that i can identify them when they login again. Pls help me.

Answer: 
### HgIgnore

First of all, you can add some rules to the [.hgignore](http://mercurial.selenic.com/wiki/.hgignore) file to tell Mercurial that you want to ignore some files. Then, `hg addremove` won't add them automatically and they won't appear in the output of the commands (ie `hg status`) as untracked.

### Removing the files

To remove your files, you can use `hg remove myfile`, for example, if all your `pyc` files are in the same directory, you can do `hg remove *.pyc` and then commit the change.

If your files are scattered in various repository, something like `hg remove -I *.pyc **/*` should remove all `.pyc` files in all directories.

### Exclusion patterns

FYI, will it's better to add unwanted files in the `.hgignore` file, you can also tell `addremove` to ignore some files by doing `hg addremove -X *.pyc`. This will add/remove every files except those having the `pyc` extension.

You can find help about a specific mercurial command using `help`. For example, `hg help addremove`. In general everything is neatly explained !

### Tutorial

To explore various Mercurial concepts in more depth, I recommand this excellent tutorial : <http://hginit.com>
To remove **all** binary files from a repository, you can use [Mercurial filesets](http://selenic.com/hg/help/filesets):

```
hg remove "set:binary()"

```

And as the other posters mentioned, it's a great idea to add unwanted extensions in the .hgignore file.