workdir: add usage and a completion message
authorswalter <swalter@swalter-d630.(none)>
Wed, 3 Dec 2008 17:41:08 +0000 (3 12:41 -0500)
committerswalter <swalter@swalter-d630.(none)>
Wed, 3 Dec 2008 17:41:08 +0000 (3 12:41 -0500)
plugins/workdir.py

index b4a901e..e08b48b 100644 (file)
@@ -47,6 +47,8 @@ class WorkdirPlugin(YapCore):
                 continue
 
     def cmd_workdir(self, branch, workdir=None):
+        "<branch> [workdir]"
+
         self._check_git()
 
         branches = get_output("git for-each-ref --format='%(refname)' 'refs/heads'")
@@ -90,6 +92,8 @@ class WorkdirPlugin(YapCore):
         run_safely("git symbolic-ref HEAD refs/heads/%s" % branch)
         self.cmd_revert(**{'-a': 1})
 
+        print "Workdir created at %s for branch %s" % (workdir, branch)
+
     def cmd_switch(self, branch, *args, **flags):
         self._check_git()