Commits

Thejesh GN committed b0e6068

self upgrader

Comments (0)

Files changed (1)

 import os
+import sys
 import sublime
 import sublime_plugin
 import threading
         if picked_branch.startswith("*"):
             return
         picked_branch = picked_branch.strip()
-        self.run_command(['hg', 'branch', picked_branch])
+        self.run_command(['hg', 'branch1', picked_branch])
 
 class hg4sublUpdate(HgCommand):
     def run(self,edit):
                 args = ["hg","pull", "--update", "default"]
                 self.panel("done-1")
                 proc = subprocess.Popen(args, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, startupinfo=startupinfo, cwd=hg4subl_folder)
-                self.panel("done-2")
+                output = proc.stdout.read()
+                returncode = proc.wait()
+                if returncode != 0:
+                    error = NonCleanExitError(returncode)
+                    error.output = output
+                    raise error
+                self.panel(output)