title: pysvn gives error : Not a working copy
body: <p>I am trying to get the last modified author names for a set of files in svn.</p>
  
  <p>I have the code checked out on my machine.</p>
  
  <p>In my script, the absolute paths for all the files are read in a list. I am trying to extract the last edited author for each of the files using the following code.</p>
  
  <pre><code>for file in all_files:
      dir = os.path.dirname(file)
      entry = client.info(dir)
      print "Folder:"+dir+" And author:"+entry['commit_author']
  </code></pre>
  
  <p>But I am getting the following error : </p>
  
  <pre><code>File "test_main.py", line 110, in main
  entry = client.info(dir)
  pysvn._pysvn.ClientError: '.' is not a working copy
  </code></pre>
  
  <p>I tried giving the whole file name as argument for <code>client.info()</code> got the same result.</p>
  
  <p>This might be a very simple issue but I am a newbie in python so not able to figure out.</p>
  
  <p>EDIT:</p>
  
  <p>I tried hard coding the folder path as:</p>
  
  <pre><code>  temp = "/home/gajananh/scripts/test/repo/test_proj/src";
    entry = client.info(temp)
    print "Folder:"+dir+" And author:"+entry['commit_author']
  </code></pre>
  
  <p>And it works !</p>
  
  <p>In my first script when I just try to print <code>dir</code> variable in loop, it prints the correct paths. When I try to run <code>svn info</code> command on shell for the output, I get proper results.</p>
  
  <p>I am not able to understand this mystery. Please help.</p>