hgignore

Mercurial .hgignore for Android Studio projects

时光毁灭记忆、已成空白 提交于 2019-11-30 04:51:56
What files should be ignored in Mercurial when using Android Studio (1.0 RC4 Windows) for development? Creating new application project also creates .gitignore file. I have translated that to following .hgignore file syntax: glob .hgignore .gradle local.properties .idea/workspace.xml .idea/libraries .DS_Store build But when I do Add to VCS for my project, some files that are not in ignore list are not being added to Mercurial. Files left out are: .idea\.name .idea\compiler.xml .idea\copyright\profiles_settings.xml .idea\encodings.xml .idea\gradle.xml .idea\misc.xml .idea\modules.xml .idea

How to check which files are being ignored because of .hgignore?

佐手、 提交于 2019-11-30 01:06:06
问题 I'm quite often concerned that my hgignore file may be excluding important files. For example I just noticed that I was excluding all .exe files which excluded some little executable tools which should be kept with the source. It was a simple change to include them but makes me worried that the rules could have un-intended consequences. Is there a way to view a list of all the files which are not being tracked due to the .hgignore file? Just so I can periodically review the list to check I'm

hg local ignore

巧了我就是萌 提交于 2019-11-29 22:12:32
I could have sworn there was a way to keep a local ignore file in an hg repo, i.e. a file similar in function to .hgignore, but not checked into the repo. This could be used to ignore changes to an IDE project file if different IDEs are being used, for example. I'm having trouble finding how it's done. Does anyone recall the details? fakeleft This is what I was looking for. Add the following to the repo's .hg/hgrc: [ui] ignore = /path/to/repo/.hg/hgignore and create a new file .hg/hgignore beside it. This new file will be untracked, but work the same as the versioned .hgignore file for this

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

耗尽温柔 提交于 2019-11-29 21:19:17
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? If the files you want to omit from the "hg commit" command are already "tracked", you should use the -X option. The pattern passed to -X is pretty flexible, making it possible to run for

Mercurial: Globally Ignore Files

依然范特西╮ 提交于 2019-11-29 20:23:27
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). 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 In powershell, you can get to your global files like this. PS> notepad $env:userprofile/mercurial.ini ... [ui] ignore = %USERPROFILE%\

How can I ignore everything under a folder in Mercurial

匆匆过客 提交于 2019-11-29 19:28:54
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 Alternately: syntax: glob bin/** 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 status will apply the patterns against foo/bar/file1.c and such. Anchors apply to this path. So: Glob applies to

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

▼魔方 西西 提交于 2019-11-29 09:54:47
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? rpeshkov 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. Installation Clone extension source somewhere, i.e. in ~/.hgrc.d/hg-isignored folder: hg clone https:/

hg - Ignore directory at root only

老子叫甜甜 提交于 2019-11-29 06:10:43
问题 In my project's .hgignore , I want to exclude /static/ (i.e., the static folder at the root of the directory), but not /templates/static/ . How would I configure .hgignore to allow this? 回答1: You can include syntax: regexp at the beginning of .hgignore and then use perl regex syntax to root a directory by using ^ . So just ^static should do the work. 回答2: As of Mercurial 4.9, you can use syntax: rootglob to insert rooted glob patterns. New rootglob: filename pattern for a glob that is rooted

Mercurial .hgignore for Android Studio projects

守給你的承諾、 提交于 2019-11-29 02:20:08
问题 What files should be ignored in Mercurial when using Android Studio (1.0 RC4 Windows) for development? Creating new application project also creates .gitignore file. I have translated that to following .hgignore file syntax: glob .hgignore .gradle local.properties .idea/workspace.xml .idea/libraries .DS_Store build But when I do Add to VCS for my project, some files that are not in ignore list are not being added to Mercurial. Files left out are: .idea\.name .idea\compiler.xml .idea\copyright

ignoring folders in mercurial

馋奶兔 提交于 2019-11-29 01:01: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.11 in Windows Try it without the slash after the caret in the regexp version. ^test/ Here's a test: ~$