Mercurial - How to stop tracking modified file but keep the first version in repository.
Posted
by teerapap
on Stack Overflow
See other posts from Stack Overflow
or by teerapap
Published on 2010-04-21T05:35:25Z
Indexed on
2010/04/21
6:23 UTC
Read the original article
Hit count: 267
I create the hg repository with my source tree. I want to keep the first version of some files such as Makefile
in the repository and then hg don't see it modified even through I modified it.
Original problem is that ./configure
usually modifies the Makefile
but I don't want the build files to committed in the repository. So I want to keep only first version of configure and Makefile
in the repository so that everybody who clone my repository can run ./configure
by themself and not bother the repository
I tried hg remove
or hg forget
but those are stop tracking and also delete the files in the next revision of reporitory.
.hgignore
doesn't do the things too.
I think of hg revert
everytimes I run ./configure
or make but it's not efficient way.
Are there any better ways?
© Stack Overflow or respective owner