title: Mercurial - Could not lock working directory
body: <p>We have a web-app, that we're deploying to a remote Ubuntu server.</p>
  
  <p>The app is stored on BitBucket, and we also have Fabric scripts we're using to automatically deploy the app.</p>
  
  <p>On the server, we have the files for the app in /var/www/name_of_site, this folder being a  Mercurial repository. The files are owned by the user www-data, group www-data, and are group-writable.</p>
  
  <p>When I attempt to login to the server and do a "hg add" inside the repository, I get a:</p>
  
  <pre><code>adding fabfiles/fabfile.py
  abort: could not lock working directory of /var/www/site_name: Permission denied
  </code></pre>
  
  <p>I tried adding myself to www-data, and it still gives that error message. I'm able to create folders/files inside /var/www/site_name fine.</p>
  
  <p>Have I set things up incorrectly here? Should the permissions be different?</p>
  
  <p>Cheers,
  Victor</p>