Can't see changes

Scott Palmer swpalmer at gmail.com
Wed Jul 27 23:34:28 UTC 2011


On 2011-07-27, at 5:33 PM, Matt Mackall wrote:


> 
> It's worth noting that this is just the most dangerous side-effect of a
> common usage error: failure to properly set up a .hgignore file. Which
> is either caused by:
> 
> a) people blindly running hg add on their first commit without checking
> status
> b) tutorials not being explicit about the importance of .hgignore files
> 
> ..which regularly results in people adding backup files, binary files,
> tarballs, and other garbage to their permanent history.
> 
> It's tempting to say that we should refuse to do 'hg add' with no args
> if an ignore file doesn't exist. Or issue a really loud warning. 

Perhaps Mercurial should include an option to generate a .hgignore file that contains entries to exclude the main known problem files, or at least include them as examples in the output of "hg help ignore"

Scott




More information about the Mercurial mailing list