title: SVNException unable to rename file when using SVNKit in a ikvmc-ed library in C#
body: <p>I used ikvmc to compile svnkit to a C# (dll) library and linked it as a reference to my project.</p>
  
  <p>I tried a proof of concept code to checkout:</p>
  
  <pre><code>public void checkOut(Dictionary&lt;string,List&lt;object&gt;&gt; tokens) {
              string url_str = (string) tokens["checkout"][0];
              setupLibrary();
              java.io.File path = new java.io.File(Path.Combine (Directory.GetCurrentDirectory (), "check_out_folder"));
  
              SVNURL url = SVNURL.parseURIEncoded(url_str);
  
              SVNClientManager cm = SVNClientManager.newInstance();
              SVNUpdateClient uc = cm.getUpdateClient();
              try {
                  uc.doCheckout(url, path, SVNRevision.UNDEFINED, SVNRevision.HEAD, true);                        
              }
              catch (SVNException e) {
                  Console.WriteLine(e.getErrorMessage());
              }
          }
  </code></pre>
  
  <p>Everything compiles fine, and even runs fine. However, I have this error:</p>
  
  <pre><code>$ mono subsync.exe -co http://code.djangoproject.com/svn/django/trunk/
  svn: Cannot rename file '/home/nubela/Workspace/subsync/subsync/bin/Debug/check_out_folder/.svn/tmp/entries' to '/home/nubela/Workspace/subsync/subsync/bin/Debug/check_out_folder/.svn/entries'
  </code></pre>
  
  <p>It creates the checkout_folder, and here are the conflicting files:</p>
  
  <pre><code>$ ls -alR check_out_folder/ | grep entries
  -r--r--r-- 1 nubela nubela  204 2010-02-17 13:07 entries
  -r--r--r-- 1 nubela nubela  204 2010-02-17 13:07 entries
  </code></pre>
  
  <p>Heres are the contents of the checkout_folder:</p>
  
  <pre><code>[nubela@nubela-netbook check_out_folder]$ ls -al
  total 12
  drwxr-xr-x 3 nubela nubela 4096 2010-02-17 13:07 ./
  drwxrwxr-x 3 nubela nubela 4096 2010-02-17 13:07 ../
  drwxr-xr-x 6 nubela nubela 4096 2010-02-17 13:07 .svn/
  </code></pre>
  
  <p>Any idea why this is happening and how I can overcome this?</p>
  
  <p>Edit: It works under windows (with mono, not under .NET). Prolly because windows does not have the annoying file permissions for files.</p>
  
  <p>Edit2: I have chmod 777 -R checkout_folder already, and explicitly chmod 777 the 2 entries file. It still doesn't work. Weird.</p>