title: Using version control to keep multiple code branches up to date
body: <p>I'm hoping that someone will be able to help me better understand version control in this scenario. Currently we're thinking of either implementing VisualSVN or Mercurial, but want to get our strategy figured-out first. </p>
  
  <p>I'm part of a two man development team working on porting and maintaining a bespoke CMS system. We're looking to keep a "stable" branch, and each have our own dev branches as required.</p>
  
  <p>Where we're not sure is that each customer requires their own customisations (templates, stylesheets, etc). I'd expect these to then be branches from stable. Ideally we'd like a way to ensure that any changes made to stable (such as merging a dev branch back in or adding a hot-fix) get pushed out to the customer branches. </p>
  
  <ul>
  <li><p>Is there a way to ensure that these customer branches always get automatically brought forward to the most recent changeset ? </p></li>
  <li><p>Can we choose to exclude certain files (such as *.css) from getting pushed to the client branches after the initial branch operation ?</p></li>
  </ul>
  
  <p>Looking at this you'd be able to go into each customer branch and pull from stable, merging the latest changes in. In the event that we end up with lots of customer branches, is there a better way to do this ?</p>
  
  <p>I've found some questions that seem to offer good advice</p>
  
  <ul>
  <li><p><a href="https://stackoverflow.com/questions/4852124/using-version-control-with-non-hierarchical-code">Using version control with non-hierarchical code?</a> </p></li>
  <li><p><a href="https://stackoverflow.com/questions/404948/practical-way-to-commit-changes-in-source-control-to-multiple-branches">Practical way to commit changes in source control to multiple branches</a></p></li>
  <li><p><a href="https://stackoverflow.com/questions/4095184/version-control-for-multiple-instances-of-a-developing-code">Version control for multiple instances of a developing code</a></p></li>
  <li><p><a href="https://stackoverflow.com/questions/2563887/how-do-i-keep-my-branches-up-to-date-with-the-default-branch-under-mercurial">How do I keep my branches up to date with the &#39;default&#39; branch under Mercurial?</a></p></li>
  </ul>
  
  <p>Apologies if I'm coming at this backwards, but all suggestions would be appreciated.</p>