Mercurial - indicate that certain files should always be pulled out, but not clicked?

There are certain files in my repository that I want to edit locally. But I never want to make any changes to these files on the server. Is it possible to install this?

EDIT: I want to clarify that I want to make changes that others have made. But I do not want to push my changes.

+3
source share
4 answers

It's not easy. Mercurial does not push and pull files that it pushes and pulls changes. Your only way is to never transfer these files. Ignoring them is not an option, since they are already tracked (added) and tracked are always ignored.

, .

hg commit -X a-file-I-changed -X another-file 

, hgrc:

[alias]
mycommit = -X a-file-I-changed -X another-file 

, , . , database.conf ( ), database.conf.sample, script database.conf.sample database.conf, . .

+2

, , Mercurial Queue. pop , , push . , , , .

+2

From the mercurial Tips and Tricks wiki page: Ignore files only in the local working copy

-1
source

All Articles