Permalink
Browse files

Update root command

  • Loading branch information...
1 parent cd5df14 commit cac3ca21ccd072b26c8b3755f3b9b1a3341a629e Tomek Wytrębowicz committed Sep 10, 2012
Showing with 21 additions and 3 deletions.
  1. +4 −0 Default.sublime-commands
  2. +2 −0 messages/0.1.2.txt
  3. +15 −3 vlt.py
  4. BIN vlt.pyc
View
@@ -15,6 +15,10 @@
"caption": "vlt: Update",
"command": "vlt_update"
},
+ {
+ "caption": "vlt: Update Root",
+ "command": "vlt_update_root"
+ },
{
"caption": "vlt: Resolve",
"command": "vlt_resolve"
View
@@ -8,4 +8,6 @@ Feature:
- show new files and folders
- add selected files or folders
- add all
+ - Revert.. panel, revert modified entries
+ - Update Root command: updates entire repo.
- resolve command, mark file as resolved
View
18 vlt.py
@@ -434,7 +434,21 @@ def run(self, edit):
LogResults(success, message)
else:
WarnUser("View does not contain a file")
-# Update section
+
+class VltUpdateRootCommand(VltWindowCommand):
+ force_open = False
+
+ def run(self):
+ self.run_command(['vlt', 'update', vlt_root(self.get_working_dir()) ], self.update_done, True)
+
+ def update_done(self, result):
+ if result.strip():
+ self.scratch(result, title="Vlt Update")
+ else:
+ sublime.status_message("Nothing to show")
+
+
+
def Resolve(in_folder, in_filename):
# resolve the file
return VltCommandOnFile("resolve", in_folder, in_filename);
@@ -449,8 +463,6 @@ def run(self, edit):
WarnUser("View does not contain a file")
-
-
class VltRevertChoiceCommand(VltStatusCommand):
#VltStatusCommand):
def show_status_list(self):
View
BIN vlt.pyc
Binary file not shown.

0 comments on commit cac3ca2

Please sign in to comment.