Plugins/VcsPlugins/vcsPySvn/subversion.py

changeset 3108
30521d7d3101
parent 3051
f08c20c91de7
child 3128
2d4ccc459f7e
diff -r 5b496e690984 -r 30521d7d3101 Plugins/VcsPlugins/vcsPySvn/subversion.py
--- a/Plugins/VcsPlugins/vcsPySvn/subversion.py	Sun Nov 24 17:10:51 2013 +0100
+++ b/Plugins/VcsPlugins/vcsPySvn/subversion.py	Sun Nov 24 17:52:37 2013 +0100
@@ -2452,6 +2452,27 @@
             locker.unlock()
         
         return changelists
+        
+    def svnUpgrade(self, path):
+        """
+        Public method to upgrade the working copy format.
+        
+        @param path directory name to show change lists for (string)
+        """
+        client = self.getClient()
+        dlg = \
+            SvnDialog(self.trUtf8('Upgrade'),
+                      "upgrade {0}".format(path),
+                      client)
+        QApplication.processEvents()
+        locker = QMutexLocker(self.vcsExecutionMutex)
+        try:
+            client.upgrade(path)
+        except pysvn.ClientError as e:
+            dlg.showError(e.args[0])
+        locker.unlock()
+        dlg.finish()
+        dlg.exec_()
 
     ###########################################################################
     ## Private Subversion specific methods are below.

eric ide

mercurial