Instead of implementing the same thing ourselves, have SVNShell use cmd.Cmd.
Instead of implementing the same thing ourselves, have SVNShell use cmd.Cmd.

* tools/examples/svnshell.py
  (__init__): call _setup_prompt and cmdloop instead of _do_prompt.
  (cmd_help): deleted, the Cmd class has a perfectly servicable help built in.
  (cmd_*): rename to do_*, and adjust arguments (now take a single arg).
  (postcmd): new method, just calls _setup_prompt.
  (_do_prompt): rename to _setup_prompt, and remove a bunch of logic we no 
   longer need.
  (main): remove the termios stuff, i'm fairly sure Cmd can handle this sort 
   of thing for us, but if anyone has trouble, feel free to just put it back.


git-svn-id: f8a4e5e023278da1e04e203c7fe051e3c4285d88@846105 13f79535-47bb-0310-9956-ffa450edef68

YueLinHo/Subversion,YueLinHo/Subversion,wbond/subversion,YueLinHo/Subversion,YueLinHo/Subversion,wbond/subversion,wbond/subversion,wbond/subversion,wbond/subversion,YueLinHo/Subversion,wbond/subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,wbond/subversion