hgignore

Mercurial .hgignore for Visual Studio 2012 projects

强颜欢笑 提交于 2019-11-27 05:08:55
问题 I currently use the answer to a similar question for Visual Studio 2010 as my go to hgignore file. Are there any notable additions to include with VS2012? Below is a compiled list from many different sources. Gist here. I have found that projects upgraded from VS2010 have a lot of backup and upgrade log files not required. # use glob syntax syntax: glob *.obj *.pdb *.user *.aps *.pch *.vspscc *.vssscc *_i.c *_p.c *.ncb *.suo *.tlb *.tlh *.bak *.[Cc]ache *.ilk *.log *.lib *.sbr *.scc [Bb]in

How can I ignore all directories except one using .hgignore?

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-27 03:15:00
问题 I'm managing $HOME using Mercurial, to keep my dotfiles nice and tracked, or at least the ones that matter to me. However, there's a profusion of files and directories in ~ that do not need to be tracked, and that set is ever-changing and ever-growing. Historically, I've dealt with this by having this .hgignore: syntax: glob * This keeps my status clean, as far as it goes, making only previously tracked files visible. However, I have some directories (in my case, scripts , .emacs.d ) that I

Mercurial: How to ignore changes to a tracked file

社会主义新天地 提交于 2019-11-27 00:55:25
I have a file with database settings in my project which I have set to some defaults. The file is tracked by Mercurial and checked in. Since this file will be edited with different values various developer machines, is there a way I can tell Mercurial to ignore new changes to this file? I tried adding the file to the .hgignore file, but since the file is tracked it isn't ignored. This is alright and good in other situations, but I am wondering if there is something I can do here? Using a file template is definitely the best solution. For example, if you have a database.ini file, commit a

Mercurial ignore file

依然范特西╮ 提交于 2019-11-26 18:58:15
问题 I'm trying to get Mercurial to ignore a configuration file, but I'm failing to get it working. I have created a repository on my server with hg init and cloned that repository to my computer. I then want to be able to edit the configurationj file but not commit those changes back to the server. I have tried creating a .hgignore in the root of my clone, but Mercurial flags the file with a ? and whether I commit it or not it still continues to log my configuration changes. Am I creating the

hgignore: help ignoring all files but certain ones

本小妞迷上赌 提交于 2019-11-26 18:03:12
问题 I need an .hgdontignore file :-) to include certain files and exclude everything else in a directory. Basically I want to include only the .jar files in a particular directory and nothing else. How can I do this? I'm not that skilled in regular expression syntax. Or can I do it with glob syntax? (I prefer that for readability) Just as an example location, let's say I want to exclude all files under foo/bar/ except for foo/bar/*.jar . 回答1: To do this, you'll need to use this regular expression

Mercurial .hgignore for Visual Studio 2008 projects

十年热恋 提交于 2019-11-26 17:59:46
What is a good setup for .hgignore file when working with Visual Studio 2008? I mostly develop on my own, only occasionly I clone the repository for somebody else to work on it. I'm thinking about obj folders, .suo, .sln, .user files etc.. Can they just be included or are there file I shouldn't include? Thanks! p.s.: at the moment I do the following : ignore all .pdb files and all obj folders. # regexp syntax. syntax: glob *.pdb syntax: regexp /obj/ Here's my standard .hgignore file for use with VS2008 that was originally modified from a Git ignore file: # Ignore file for Visual Studio 2008 #

Mercurial .hgignore for Visual Studio 2010 projects

为君一笑 提交于 2019-11-26 12:49:25
问题 Not to be confused with Mercurial .hgignore for Visual Studio 2008 projects I was asking whether if that same file can be reused for Visual Studio 2010, or some other extensions, etc should be added to it, & why? 回答1: The new things are related to MSTest stuff. This is the one that I use: # use glob syntax syntax: glob *.obj *.pdb *.user *.aps *.pch *.vspscc *.vssscc *_i.c *_p.c *.ncb *.suo *.tlb *.tlh *.bak *.[Cc]ache *.ilk *.log *.lib *.sbr *.scc *.DotSettings [Bb]in [Dd]ebug*/** obj/ [Rr

Mercurial: How to ignore changes to a tracked file

与世无争的帅哥 提交于 2019-11-26 09:29:45
问题 I have a file with database settings in my project which I have set to some defaults. The file is tracked by Mercurial and checked in. Since this file will be edited with different values various developer machines, is there a way I can tell Mercurial to ignore new changes to this file? I tried adding the file to the .hgignore file, but since the file is tracked it isn\'t ignored. This is alright and good in other situations, but I am wondering if there is something I can do here? 回答1: Using