I have a repo in my VCS called CodingStandards. In it is a checkstyle.xml file along with findbugs.xml and it will no doubt grow in the future.
What I want to do is in my project FunkyApp is pull CodingStandards into the project and maintain the link to CodingStandards so that if I change it, I can pull & update in my FunkyApp.
First of all setup the CodingStandards repo in .hg/hgrc to make life easier
Then you can force pull into your repository
This will create two heads in your repo that need to be merged with
hg mergeand then committed into your main repo.To be clear
CodingStandardswill be unchanged.FunkyAppwill have all the files fromCodingStandardsimported in it. Anyone else who clonesFunkyAppwill get the files without knowing aboutCodingStandards.