Equivalent to removing readonly from a file using TFS / MS SS in Mercurial

Is there a way to get Mercurial to process the file as if it matched copies of the source code, even if it was modified? It was a simple trick with Team Foundation Server / Source Safe, where just making a file writable via Explorer will make these systems ignore this file when checking.

(Note that this is a file that is marked and has a value, but sometimes differs for each developer, I think the connection string)

+3
source share
1 answer

Define aliases in hgrc for the commit command, which excludes the file that you do not want to track in commit.

[alias]
xcommit=commit --exclude path/to/file
xstatus=status --exclude path/to/file

hgrc , , ; , hg status, hg commit.

, .hgignore , , .

+1

Source: https://habr.com/ru/post/1745140/


All Articles