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.
Ignore changes to files that are already in repository
171 Views Asked by jhourback At
1
There are 1 best solutions below
Related Questions in VERSION-CONTROL
- How to find the Git Revision Hash in a synced SVN repo using SubGit?
- How to delete a repository and add a new one in Android studio?
- Import Git SVN cloned repository into existing Git repository
- HowTo: change a project's status from `Invalid` to `Valid`?
- git - put files back under version control
- TFS version control does not show conflicts
- Git: how to commit and cherry-pick bug fix?
- git-svn problems creating tags
- Switching Git branches inside an Android Repo project
- Reverse Merge and svn:mergeinfo
- Push remote specific branches with different names
- Automatically deploy latest revision to website from SVN server
- Version Control for analytic projects
- How to tell git that my local directory is a specific directory in the remote tree
- How to properly determine a Git repository's URL
Related Questions in MERCURIAL
- Permission denied hg-git
- Searching for the change history of partial file or path in Mercurial or TortoiseHg
- TeamCity - Create Project From URL
- Revset filter to show merges / splits of named branches
- How to set up default local push path in Mercurial?
- How do I configure global Mercurial options (like extensions) in Cloudbees Jenkins?
- mercurial - several projects and repositories
- Mercurial: are pre-commit hooks run for other committing commands than "hg ci"
- What is the taskArtifacts folder in my android projet inside my mercurial repository for?
- Mercurial get branch name by changeset
- How to reorder patches of git guilt patch series?
- How to commit many numbered old versions of a file
- Mercurial: Re-merge into branch without new changes
- Hg Mercurial - Upgrading code not in repository
- How do I make a revset alias for tags whose names follow a pattern?
Related Questions in DVCS
- Understanding git - why even commit locally?
- Directory mapping and merging in git
- git garbage-size out of control, need understanding
- Git checkout to external work tree and remove deleted files
- How do I view list of commit messages between two branches
- git rebase -i foo/dev gives noop
- Git gui and command line - hook handling error
- Git - Merging changes from one feature branch into another between developers
- That the reason to make harder work with anonymous branches in git (so named lost commits)?
- Can I track last pull in Mercurial?
- Mercurial Subrepositories: Prevent accidental recursive commits and pushes
- Does merge direction matter in Mercurial?
- Partial (per-file/folder) branching/tagging in Mercurial?
- Combination of incoming + outgoing + status?
- How should I organize my Git repositories and branches to create multiple versions of a website?
Related Questions in HGIGNORE
- Recommended .hgignore file for Python projects?
- Regex to match any .config file with a few exceptions
- How do I make mercurial ignore symbolic links?
- mercurial and ignore pattern
- ignoring manage.py with Mercurial (hg .hgignore)
- How to hgignore all files of a particular extension except in one directory and its subdirectories?
- Mercurial gives "invalid pattern" error for simple GLOB syntax
- Mercurial doesn't ignore files in directory I specify
- mercurial hgignore does not ignore directory
- Ignore changes to files that are already in repository
- Intellij 11.0.1 seems to be ignoring my .hgignore file
- hg - Ignore directory at root only
- Mercurial .hgignore file: is it possible to hide extensions in some directories but not others?
- Honing the .hgignore file using a negative lookahead
- TortoiseHg won't ignore properly
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
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.templateto version control and addconfigto.hgignore. Ask your developers to copy the template to the real name and customize it as needed.