Search code examples
pysvn

How to determine the process is done in python


I used pysvn to Check out a working copy from a repository, how can I determine that checking out is completed to give the message to the user?

client = pysvn.Client() 
client.checkout('file:///media/sda5/trunk','/tmp/test_checkout')

I used the above code to check out, so how can determine when it's done?

Please give me some ideas. Thanks


Solution

  • The client.checkout operation is waiting for the checkout to complete, so just notify it the way you want after function return.