hgignore

Ignore changes to files that are already in repository

大憨熊 提交于 2021-01-27 23:48:32
问题 Adding files to .hgignore will prevent them from being tracked. But we have some files that we want to be in the repository - we just don't want users to ever commit changes. Is there a way to ignore changes to these files, so they won't get committed in an hg commit . 回答1: That cannot be done in Mercurial — a file is either tracked or untracked (and then optionally ignored). You should instead version a template file and then ignore the real file. So add config.template to version control

Mercurial and xcuserdata, .ds_store, and .git

試著忘記壹切 提交于 2020-01-02 04:47:27
问题 Mercurial noob here. I'm having a lot of trouble working with mercurial and files like xcuserdata and .ds_store and .git. I'm at my wits end. The current setup has a central repo that acts like a middleman. We push and pull changes to it. Commits were previously pushed that included unwanted files (xcuserdata, git, ds_store) before a .hgignore file was made. This has caused nightmares. What I tried: I tried ignoring the problem and letting merge handle it, but it causes branches on the

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

核能气质少年 提交于 2019-12-31 01:25:51
问题 (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? 回答1: 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

Mercurial: a few questions all related to .hgignore

依然范特西╮ 提交于 2019-12-23 09:41:11
问题 I've been working for a long time with a .hgignore file that was fine and recently added one new type of files to ignore. When running "hg status", I noticed this: M .hgignore So Mercurial considers the .hgignore to be a file that needs to be tracked (if it's a the root of the project). Now I've read various docs but my points weren't specifically adressed so here are some very detailed questions which hopefully can help me figure this out (it would be great is someone answering could quote

Mercurial gives “invalid pattern” error for simple GLOB syntax

一个人想着一个人 提交于 2019-12-23 07:47:22
问题 I have the following in my .hgignore file: syntax: glob obj/* bin/* *.suo *.user *.ncb If I comment out the *. filters, the filtering works fine filtering out the files in the bin and obj folder, however, if I keep those filters in I receive the following error: abort: c:\temp\.hgignore: invalid pattern (relre): *.suo Note: The file is encoded in UTF-8 回答1: The error message from Mercurial tells us that your syntax: glob line is not read by Mercurial. Patterns in ignore files default to

Mercurial .hgignore Negative Lookahead

自作多情 提交于 2019-12-22 03:46:49
问题 Using Mercurial, I need to ignore all files except for those in a certain directory called "keepers". On the face of things, this seemed easy using Regex and Negative Lookahead; however, although I am able to verify my regex in Regex Buddy and other tools, in TortoiseHg, it doesn't work as expected. Files: junk\junk.txt junk\text keepers\test\test keepers\test\test2\hi.txt keepersblah.txt Only the two files under keepers should be not be ignored. Here is the regex I hoped would work: ^(?

Global hgignore usage

旧街凉风 提交于 2019-12-22 01:25:22
问题 In my mercurial.ini file, I call a global hgignore file like this: [ui] ignore = ~/hgignore.ini This refers to a hgignore.ini file which is in the same directory as the mercurial.ini file. Does the local hgignore override the global hgignore? If so, is it recommended to have a single global hgignore with relevant sections marked or have a global hgignore file for general patterns and individual local hgignore files for special patterns pertaining to the particular repo? By global hgignore

.hgignore syntax for ignoring only files, not directories?

馋奶兔 提交于 2019-12-20 13:19:05
问题 I have a problem which I can't seem to understand. I'm using TortoiseHg (version 0.7.5) on Windows but on Linux I have the same problem. Here it is: My .hgignore file: syntax: regexp ^[^\\/]+$ What I'm trying to achieve is to add to the ignore list the files which are in the root of the hg repository. For example if I have like this: .hg +mydir1 +mydir2 -myfile1 -myfile2 -anotherfile1 -anotherfile2 .hgignore I want myfile1(2) and anotherfile1(2) to be ignored (names are only for the purpose

hg diff on MySQL Workbench files

六眼飞鱼酱① 提交于 2019-12-20 03:07:40
问题 I'm posting this as a Q&A to document a workaround for a problem that seems to come up frequently—how to put MySQL Workbench files under version control—but for which I have been unable to find any solutions. Feedback is welcome! How can I tell Mercurial to diff the contents of a zipped archive and ignore some of the changes to those contents? Specifically, how can I use hg to diff the contents of a MySQL Workbench ( .mwb ) file, ignoring the many unimportant changes that MySQL Workbench

Mercurial .hgignore for Visual Studio 2008 projects

允我心安 提交于 2019-12-17 04:12:08
问题 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/ 回答1: Here's my standard .hgignore file for