hgignore

Mercurial ignore-file for Eclipse and Android development

只愿长相守 提交于 2019-12-03 05:11:12
问题 I have seen samples for Mercurial ignore files for Visual Studio, amongst others. I've just started playing around with Android development, and I also use this time to experimenting with Mercurial. So my question is: does anyone have a good example of a .hgignore file to use for Eclipse and Android development? For starters I've got the following myself: # use glob syntax syntax: glob # Ignore patterns .metadata\ bin\ gen\ Are there any other ignore patterns that should be included? Should

Interconversion of gitignore and hgignore?

一曲冷凌霜 提交于 2019-12-03 04:15:07
I'm just starting to use hg-git to push some mercurial repositories to github, and I'm realizing that if people check them out using git, they'll need a .gitignore file in the repository. Is there any automated way to convert hgignore to gitignore or vice versa? If you're just using glob syntax in your hgignore, then all you'd need to do is rename it, and it should just work. If you're using regex syntax then it's going to be a different story... 来源: https://stackoverflow.com/questions/4349043/interconversion-of-gitignore-and-hgignore

How to list all files in a repository in Mercurial (hg)?

笑着哭i 提交于 2019-12-03 02:34:27
问题 Is there a command in mercurial that will list all files currently under source control? I can do a dir /s to list all files in my folder and subfolders, but I have no idea which have been added to my repository. I have a variety of excluded file types and folders and I want verify that none of them were added before I set them up in my .hgignore file. 回答1: hg status --all will list all the files in the tree, with a letter indicating its status: M for modified, C for clean (owned by hg), and

Mercurial .hgignore for Visual Studio 2013 projects

荒凉一梦 提交于 2019-12-03 00:13:36
As a followup to my question on VS2012 , are there any addition that should be made to the .hgignore file for VS2013? Below is the previous answer. ############################################################ ## Visual Studio 2012 ############################################################ syntax: glob ## User-specific files *.suo *.user *.sln.docstates ## Build results [Dd]ebug/ [Rr]elease/ x64/ build/ [Bb]in/ [Oo]bj/ ## MSTest test Results [Tt]est[Rr]esult*/ [Bb]uild[Ll]og.* *_i.c *_p.c *.ilk *.meta *.obj *.pch *.pdb *.pgc *.pgd *.rsp *.sbr *.tlb *.tli *.tlh *.tmp *.tmp_proj *.log *.vspscc

How to list all files in a repository in Mercurial (hg)?

孤人 提交于 2019-12-02 16:04:06
Is there a command in mercurial that will list all files currently under source control? I can do a dir /s to list all files in my folder and subfolders, but I have no idea which have been added to my repository. I have a variety of excluded file types and folders and I want verify that none of them were added before I set them up in my .hgignore file. Ned Batchelder hg status --all will list all the files in the tree, with a letter indicating its status: M for modified, C for clean (owned by hg), and I for ignored. For just ignored files, use hg status -i . For just files that will be added

Mercurial hg ignore does not work properly

☆樱花仙子☆ 提交于 2019-12-01 21:03:23
问题 Situation $ cat .hgignore .hgignore $ hg status M file1 M file2 M src/project.xml I don't want to track the project.xml so I run echo "project.xml" >> .hgignore and the result is $ cat .hgignore .hgignore project.xml $ hg status M .hgignore M file1 M file2 M src/project.xml So the .hgignore is now as modified even though it shouldn't be tracked and nothing happend with the project.xml . What does this mean? 回答1: You wrote: " M src/project.xml" which means that src/project.xml is under version

What grails project files should not be added to version control? (Grails 1.3.x)

夙愿已清 提交于 2019-12-01 19:14:23
(This question has been asked before, but a while back: Suggestions for Grails .gitignore ; it was answered for grails 1.0.x) What files in a Grails 1.3.x project should not be included in version control? See http://grails.org/Checking+Projects+into+SVN - it has a short list of ignores. I would include .settings/ but I tend to keep .classpath and .project in source control because they change with the project. Then again, perhaps it's better simply to run grails integrate-with --eclipse . .gitignore: # Maven output directory target/ # Eclipse Project files .classpath .project .settings/ # OS

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

泪湿孤枕 提交于 2019-11-30 17:29:00
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 happy with it. The command hg status -i does exactly that. @Jon beat me to the punch with the right

hg local ignore

淺唱寂寞╮ 提交于 2019-11-30 10:44:58
问题 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? 回答1: 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

hg - Ignore directory at root only

て烟熏妆下的殇ゞ 提交于 2019-11-30 05:46:42
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? 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. 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 at the root of the repository. See hg help patterns and hg help hgignore for details 来源: https://stackoverflow