Commits

Anonymous committed f6225c8

Corrected numerous errors (last commit was in error)

  • Participants
  • Parent commits 49b4371

Comments (0)

Files changed (2)

package-metadata.json

 {
-	"url": "https://bitbucket.org/CDuke/sublime-tfs",
-	 "version": "0.0.3",
-	 "description": "Help work with Team Foundation Server"
+	"url": "https://bitbucket.org/sburrows/sublime-tfs",
+	 "version": "0.0.31",
+	 "description": "Clone of https://bitbucket.org/CDuke/sublime-tfs. Help work with Team Foundation Server"
 }
         global auto_checkout_dict
         path = view.file_name()
         id = view.buffer_id()
+        checkPassed = True
         if not (path is None) and not (id in auto_checkout_dict) and isReadonly(path):
-            manager = TfsManager()
-            thread = TfsRunnerThread(path, manager.auto_checkout)
-            if(sublime.load_settings('sublime_tfs.sublime-settings').get("prompt_checkout") == "True"):
+            if(sublime.load_settings('sublime_tfs.sublime-settings').get('prompt_checkout') == 'True'):
+                checkPassed = False
                 if(sublime.ok_cancel_dialog('The file is not checked out. Check out now?', 'Go ahead!')):
                     auto_checkout_dict[id] = True
-                    return
-                else:
-                    return False
-                retun
-            thread.start()
-            ThreadProgress(view, thread, "Checkout...", "Checkout success: %s" % path)
+                    checkPassed = True
+            if(checkPassed):
+                manager = TfsManager()
+                thread = TfsRunnerThread(path, manager.auto_checkout)
+                thread.start()
+                ThreadProgress(view, thread, "Checkout...", "Checkout success: %s" % path)
 
 def isReadonly(path):
     fileAtt = os.stat(path)[0]