title: SVN - svn cleanup before every svn update
body: <p>I update some svn repositories daily using <code>svn update</code> command as part of a batch process. It works well, but some repositories frequently require <code>svn cleanup</code> due to some lock or conflict. These locks or conflicts are removed when I run the <code>cleanup</code> manually on each repository.</p>
  
  <p>Since this is getting tedious, I updated the batch process to run:</p>
  
  <pre><code>svn cleanup .
  svn update .
  </code></pre>
  
  <p>I want to know if requiring <code>cleanup</code> every time before an <code>update</code> is a good practice or not.</p>
  
  <p>Having a <code>cleanup</code> before <code>update</code> is actually working well, but I am still not sure if this is effective.</p>
  
  <hr>
  
  <p><strong>EDIT</strong>: I am really sorry, I misstated that we share working copies. We all have our own local working copies on our own machines. One guy is onsite and two of us offshore. </p>
  
  <p>Updates the repository are done both by us and by the onsite guy. I update repositories daily since there is almost always some or other update either from onsite or my colleague.</p>
  
  <p>I think my locking issues are due to <a href="http://svnbook.red-bean.com/en/1.7/svn.advanced.locking.html" rel="nofollow">internal subversion locks</a> and not due to some user locking the repositories themselves.</p>
  
  <p>The error I used to get:</p>
  
  <pre><code>svn_update_2013-5-2-12-25-11.log:21:svn: E155004: 'C:\TRUNK\Decrypt' is already locked.
  svn_update_2013-5-2-12-25-11.log:22:svn: run 'svn cleanup' to remove locks (type 'svn help cleanup' for details)
  </code></pre>