Commits

Renat Yuldasehv  committed d726a89

add fetch command

  • Participants
  • Parent commits 83c03fa

Comments (0)

Files changed (4)

File Default.sublime-commands

     {
         "caption": "Hg: Pull",
         "command": "hg_pull"
+    },
+    {
+        "caption": "Hg: Fetch",
+        "command": "hg_fetch"
     }
 ]

File Main.sublime-menu

                             ,{ "caption": "Add...", "command": "hg_add_choice" }
                             ,{ "caption": "Push", "command": "hg_push" }
                             ,{ "caption": "Pull", "command": "hg_pull" }
+                            ,{ "caption": "Fetch", "command": "hg_fetch" }
 
                         ]
                     }

File README.markdown

 ## What's supported?
 
 * Pull
+* Fetch
 * Push
 *  Status
 *  Pull
         command = [get_hg(self.view), 'pull', '--update', 'default']
         self.run_command(command)
 
+class HgFetchCommand(HgTextCommand):
+    def run(self, edit):
+        command = [get_hg(self.view), 'fetch','default']
+        self.run_command(command)
+
 class HgLogCommand(HgTextCommand):
     def run(self, edit):
         self.run_command([get_hg(self.view), 'log', '-v','--', self.get_file_name()], self.log_done)