What is the use of the .# files

Marcin Kasperski Marcin.Kasperski at softax.com.pl
Wed Jun 11 06:35:36 CDT 2008


Martin Chabot <chabotm at gmail.com> writes:

> In my working folder I got  ".#"  files (example:   .#coco.rb ) and I am 
> wondering what is their use.

Some editors (in particular, emacs), create such temporary files for the
files you are just editing.

In case you use Emacs (or some Emacs clone), try C-x s (save all), or
just exit the editor. In normal circumstances all those files should
disappear (unless something is left after editor crash, reboot or sth
like that).

> Can I delete them?

If they remain after you close your editor - most likely, yes.


> Should I add them in the .hgignore ?

Likely yes (unless you want to be warned about unsaved files).

-- 
----------------------------------------------------------------------
| Marcin Kasperski   | A process that is too complex will fail.
| http://mekk.waw.pl |                  (Booch)
|                    |
----------------------------------------------------------------------



More information about the Mercurial mailing list