Skip to content

Commit

Permalink
force update all command
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomek Wytrębowicz committed Nov 23, 2012
1 parent 5cecd18 commit 06b305e
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
4 changes: 4 additions & 0 deletions Default.sublime-commands
Expand Up @@ -23,6 +23,10 @@
"caption": "vlt: Update All", "caption": "vlt: Update All",
"command": "vlt_update_all" "command": "vlt_update_all"
}, },
{
"caption": "vlt: (Repo) Force Update All",
"command": "vlt_update_all_force"
},
{ {
"caption": "vlt: Resolve", "caption": "vlt: Resolve",
"command": "vlt_resolve" "command": "vlt_resolve"
Expand Down
3 changes: 2 additions & 1 deletion messages.json
Expand Up @@ -5,5 +5,6 @@
"0.1.3": "messages/0.1.3.txt", "0.1.3": "messages/0.1.3.txt",
"0.1.4": "messages/0.1.4.txt", "0.1.4": "messages/0.1.4.txt",
"0.1.5": "messages/0.1.5.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"
} }
4 changes: 4 additions & 0 deletions messages/0.1.6.2.txt
@@ -0,0 +1,4 @@
Vlt integration 0.1.6.2 changelog:

Features:
- Update all force command
8 changes: 7 additions & 1 deletion vlt.py
Expand Up @@ -331,7 +331,10 @@ def run(self, edit):
self.run_command(['vlt', 'commit'], self.commit_done, True) self.run_command(['vlt', 'commit'], self.commit_done, True)


def commit_done(self, result): 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): class VltCommitCommand(VltTextCommand):
Expand Down Expand Up @@ -478,6 +481,9 @@ def update_done(self, result):
else: else:
sublime.status_message("Nothing to show") 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): class VltResolveCommand(VltTextCommand):
Expand Down

0 comments on commit 06b305e

Please sign in to comment.