hgignore

Is there an ignore-on-commit option in mercurial?

拜拜、爱过 提交于 2019-11-28 17:24:15
问题 Is there any way to ignore changes to some files on a commit with mercurial? I've got a specific situation where we have a default oracle tnsnames.ora file that points to 127.0.0.1, but some developers will modify it to point to other systems, but we don't want to change the default file. In subversion, I've simple added this to the ignore-on-commit changelist. Is there a way of doing this in mercurial? 回答1: If the files you want to omit from the "hg commit" command are already "tracked", you

Mercurial: Globally Ignore Files

泄露秘密 提交于 2019-11-28 16:25:11
问题 I know about .hgignore and how I can ignore files on a project-by-project basis. I want to ignore stuff for all Mercurial repositories. Is there something I can stick in .hgrc ? Or put a .hgignore in my $HOME path (I tried that already but maybe I did something wrong). 回答1: You can add a path to a global or per-user ignore file in the [ui] section of your global/user hgrc or Mercurial.ini : [ui] ignore = ~/.hgignore On Windows: [ui] ignore = %USERPROFILE%\.hgignore 回答2: In powershell, you can

How can I ignore everything under a folder in Mercurial

删除回忆录丶 提交于 2019-11-28 14:57:49
问题 I am looking for an expression for the .hgignore file, to ignore all files beneath a specified folder. eg: I would like to ignore all files and folders beneath bin Actually any advice on how the expressions are formed would be great 回答1: Alternately: syntax: glob bin/** 回答2: I did some experiments and I found that the regex syntax on Windows applies to the path starting with the current repository, with backslashes transformed to slashes. So if your repository is in E:\Dev for example, hg

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

∥☆過路亽.° 提交于 2019-11-28 09:51:23
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 would like to see untracked files in; I almost always want to track new additions to those directories.

Mercurial .hgignore for Visual Studio 2012 projects

拈花ヽ惹草 提交于 2019-11-28 03:28:17
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 [Dd]ebug*/ obj/ [Rr]elease*/ _ReSharper*/ [Tt]humbs.db [Tt]est[Rr]esult* [Bb]uild[Ll]og.* *.[Pp]ublish

How to determine which rule is causing a file to be ignored in Mercurial?

前提是你 提交于 2019-11-28 03:14:51
问题 Mercurial is presently ignoring a file which I believe shouldn't be ignored. The .hgignore file is remarkably large, and after a cursory read-through it's not obvious which rule(s) is/are the culprit. Is there a way to get Mercurial to tell me which rules in the .hgignore (if any) match a file? 回答1: You can't do this out of the box, but you can write Mercurial extension for this. I've written extension hg-isignored that can show you which rules in .hgignore match specified folder or file.

Mercurial ignore file

两盒软妹~` 提交于 2019-11-27 17:16:52
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 file in the wrong place, does this file need to be commited? Does it need to be created before I

ignoring folders in mercurial

女生的网名这么多〃 提交于 2019-11-27 15:33:30
问题 Caveat: I try all the posibilities listed here: How can I ignore everything under a folder in Mercurial. None works as I hope. I want to ignore every thing under the folder test . But not ignore srcProject\test\TestManager I try syntax: glob test/** And it ignores test and srcProject\test\TestManager With: syntax: regexp ^/test/ It's the same thing. Also with: syntax: regexp test\\* I have install TortoiseHG 0.4rc2 with Mercurial-626cb86a6523+tortoisehg, Python-2.5.1, PyGTK-2.10.6, GTK-2.10

hgignore: help ignoring all files but certain ones

爱⌒轻易说出口 提交于 2019-11-27 11:39:32
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 . Michael La Voie To do this, you'll need to use this regular expression: foo/bar/.+?\.(?!jar).+ Explanation You are telling it what to ignore, so this expression

Mercurial .hgignore for Visual Studio 2010 projects

扶醉桌前 提交于 2019-11-27 05:50:58
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? 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]elease*/** _ReSharper*/** NDependOut/** packages/** [Tt]humbs.db [Tt]est[Rr]esult* [Bb]uild[Ll]og.* *.[Pp