On 28/05/10 01:54, Markus Heidelberg wrote:
Bram Moolenaar, 2010-05-26 22:59:

Tony Mechelynck wrote:

On 25/05/10 22:37, Bram Moolenaar wrote:
[...]
The undo files are hidden, all version control systems I know will
ignore them.  E.g. swap files are normally not a problem.
[...]

For a counterexample, Mercurial tracks files regardless of an initial
dot: .hgignore is specifically mentioned as tracked, and I've also seen
it mentioning src/.version.c.swp when I did hg status with a file open
in Vim.

Yeah, Mercurial is a bit annoying, it does ignore it's own files (.hg,
.hgtags) but not others.

And that's the right thing to do. A VCS shouldn't add this kind of
policy. If dot files were ignored by default, they would be hidden in
"hg status" and you would forget to add them for tracking (.hgignore for
example).

You can still add something like .*.swp to .hgignore for the swap files.

Markus


I would add not only .*.swp but even .*.sw? (to ignore .swo .swn etc.), src/auto/config.mk (which is regenerated by configure from the config.mk.dist and a couple of others) and runtime/doc/tags (which is regenerated by make install). However, maybe I'm talking from a "provincial" Linux standpoint: I'm fairly certain that users of makefiles other than Makefile don't need src/auto/config.mk but what about the help tags? I guess all makefiles "ought" to rebuild them at some point but do they?

Ah, and shadow directories. In theory they can be named anything (below src/ ) but the default is src/shadow and I propose to also "ignore" src/shadow-* in case someone had several shadow directories -- with a notice somewhere (maybe as a comment in either or both of the src/Makefile and .hgignore) that shadow-<something> is the preferred name. Then src/runtime and src/pixmaps (softlinks created by make shadow) and src/cscope.out (just to be on the safe side in case someone built a cscope database for the Vim source).

What have we forgotten? Ah yes, src/auto/if_perl.c (on Linux) and src/if_perl.c (on Windows). Is that all now?


Best regards,
Tony.
--
Conservative, n.:
        One who admires radicals centuries after they're dead.
                -- Leo C. Rosten

--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui