Permalink
Browse files

force update all command

  • Loading branch information...
1 parent 5cecd18 commit 06b305edd0f140fd1c72936e8bdc60e3f14dfb39 Tomek Wytrębowicz committed Nov 23, 2012
Showing with 17 additions and 2 deletions.
  1. +4 −0 Default.sublime-commands
  2. +2 −1 messages.json
  3. +4 −0 messages/0.1.6.2.txt
  4. +7 −1 vlt.py
@@ -24,6 +24,10 @@
"command": "vlt_update_all"
},
{
+ "caption": "vlt: (Repo) Force Update All",
+ "command": "vlt_update_all_force"
+ },
+ {
"caption": "vlt: Resolve",
"command": "vlt_resolve"
},
View
@@ -5,5 +5,6 @@
"0.1.3": "messages/0.1.3.txt",
"0.1.4": "messages/0.1.4.txt",
"0.1.5": "messages/0.1.5.txt",
- "0.1.6": "messages/0.1.6.txt"
+ "0.1.6": "messages/0.1.6.txt",
+ "0.1.6.2": "messages/0.1.6.2.txt"
}
@@ -0,0 +1,4 @@
+Vlt integration 0.1.6.2 changelog:
+
+Features:
+ - Update all force command
View
@@ -331,7 +331,10 @@ def run(self, edit):
self.run_command(['vlt', 'commit'], self.commit_done, True)
def commit_done(self, result):
- sublime.status_message(result)
+ if result.strip():
+ self.scratch(result, title="Vlt Commit")
+ else:
+ sublime.status_message("Nothing to show")
class VltCommitCommand(VltTextCommand):
@@ -478,6 +481,9 @@ def update_done(self, result):
else:
sublime.status_message("Nothing to show")
+class VltUpdateAllForceCommand(VltUpdateAllCommand):
+ def run(self):
+ self.run_command(['vlt', 'update', vlt_root(self.get_working_dir()), '--force' ], self.update_done, True)
class VltResolveCommand(VltTextCommand):

0 comments on commit 06b305e

Please sign in to comment.