Plugins/VcsPlugins/vcsPySvn/subversion.py

changeset 71
f21321d97145
parent 65
ca6449ba4824
child 87
4cc5c8d1184d
diff -r 888a0ea077a3 -r f21321d97145 Plugins/VcsPlugins/vcsPySvn/subversion.py
--- a/Plugins/VcsPlugins/vcsPySvn/subversion.py	Sun Jan 17 12:21:06 2010 +0000
+++ b/Plugins/VcsPlugins/vcsPySvn/subversion.py	Sun Jan 17 13:41:01 2010 +0000
@@ -252,6 +252,7 @@
                 project.closeProject()
                 return
             shutil.rmtree(tmpProjectDir, True)
+            project.closeProject(noSave = True)
             project.openProject(pfn)
         
     def vcsImport(self, vcsDataDict, projectDir, noDialog = False):
@@ -296,22 +297,20 @@
         locker = QMutexLocker(self.vcsExecutionMutex)
         cwd = os.getcwd()
         os.chdir(os.path.join(tmpDir, project))
-        opts = self.options['global'] + self.options['update']
+        opts = self.options['global']
         recurse = "--non-recursive" not in opts
-        ignore = "--ignore" in opts
         url = self.__svnURL(vcsDir)
         client = self.getClient()
         if not noDialog:
             dlg = \
                 SvnDialog(self.trUtf8('Importing project into Subversion repository'),
-                          "import%s%s --message %s ." % \
+                          "import%s --message %s ." % \
                             ((not recurse) and " --non-recursive" or "", 
-                             ignore and " --ignore" or "",
                              msg),
                     client)
             QApplication.processEvents()
         try:
-            rev = client.import_(".", url, msg, recurse, ignore)
+            rev = client.import_(".", url, msg, recurse, ignore = True)
             status = True
         except pysvn.ClientError as e:
             status = False

eric ide

mercurial