Commits

Alexey Rakeev committed 3dd585a Draft

Added remove command

  • Participants
  • Parent commits 61f1a85
  • Tags v.0.3

Comments (0)

Files changed (4)

File Default.sublime-commands

         "command": "hg_add_choice"
     }
     ,{
+        "caption": "Hg: Remove Current File",
+        "command": "hg_remove"
+    }
+    ,{
         "caption": "Hg: Update hg4subl",
         "command": "hg4subl_update"
     },

File Main.sublime-menu

                             { "caption": "Log", "command": "hg_log" }
                             ,{ "caption": "Diff", "command": "hg_diff" }
                             ,{ "caption": "Add", "command": "hg_add" }
+                            ,{ "caption": "Remove", "command": "hg_remove" }
                             ,{ "caption": "Quick Commit", "command": "hg_commit" }
                             ,{ "caption": "Annotate", "command": "hg_annotate" }
                         ]

File README.markdown

 *  Log All
 *  Quick Commit
 *  Add current file
+*  Remove current file
 *  Diff current file
 *  Log current file
 *  Choose file to add
     def run(self, edit):
         self.run_command([get_hg(self.view), 'add', self.get_file_name()])
 
+class HgRemove(HgCommand):
+    def run(self, edit):
+        self.run_command([get_hg(self.view), 'remove', '-f', self.get_file_name()])
+
 class HgShelveCommand(HgCommand):
     def run(self, edit):
         self.run_command([get_hg(self.view), 'shelve'])