Alexey Rakeev avatar Alexey Rakeev committed 3dd585a Draft

Added remove command

Comments (0)

Files changed (4)

Default.sublime-commands

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

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" }
                         ]
 *  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'])
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.