title: What's a good way to sync in-house JavaScript code among projects?
body: <p>In my web projects (Django framework) I typically have a few internally developed JavaScript files that are shared among them. These web projects are stored in separate mercurial source code repositories. Here's the relevant directory structure:</p>
  <pre><code>+ static
  --+ css
  --+ images
  --+ js
  -----+ thirdparty
  -----+ mycompany
  --------+ shared_lib1.js
  --------+ shared_lib2.js
  --------+ project_only_lib.js
  -----+ tests
  </code></pre>
  <p>Linking to the scripts in HTML looks like so:</p>
  <pre><code>&lt;script src=&quot;/static/js/mycompany/shared_lib1.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
  </code></pre>
  <p>Currently, when I make a change (say fix a bug) in one of the shared libs and check it in, the updated code only exists in the one repository.  So, for now, I manually copy the changes over to the other repositories and check it in.</p>
  <p>This seems pretty dumb.</p>
  <p>Is there something else I should be doing that allows me to change the JavaScript, commit it to source control, and have the changes reflected in the other web projects?</p>