Commits

Fredrik Ehnbom committed 2bb2eca

Added pull/push commands

  • Participants
  • Parent commits 4095289

Comments (0)

Files changed (2)

Default.sublime-commands

     ,{
         "caption": "Hg: Update hg4subl",
         "command": "hg4subl_update"
+    },
+    {
+        "caption": "Hg: Push",
+        "command": "hg_push"
+    },
+    {
+        "caption": "Hg: Pull",
+        "command": "hg_pull"
     }
 ]
     def annotate_done(self, result):
         self.scratch(result, title = "Hg annotate")
 
+
+class HgPushCommand(HgCommand):
+    def run(self, edit):
+        command = [get_hg(self.view), 'push']
+        self.run_command(command)
+
+class HgPullCommand(HgCommand):
+    def run(self, edit):
+        command = [get_hg(self.view), 'pull', '--update', 'default']
+        self.run_command(command)
+
 class HgLogCommand(HgCommand):
     def run(self, edit):
         # the ASCII bell (\a) is just a convenient character I'm pretty sure won't ever come