Fix some bugs and maintenance burdens in mailer.py.  
Fix some bugs and maintenance burdens in mailer.py.  

Thanks to Tobias Ringström <tobias@ringstrom.mine.nu> for the bug
reports.  Thanks to that ache at the base of my skull that shows up
anytime I find myself working too hard to maintain software for the
other fixes.

* tools/hook-scripts/mailer/mailer.py
  (main): Lose 'rev', 'propname', 'action', and 'author', in favor of
    a generic cmd_args list, and wield that sucker accordingly.
  (PropChange.generate): Use 'self.action', not 'action'.
  (Lock.__init__): Use the first full path (not relative one) to fetch
    our lock comment.
  (Lock.generate): Indent paths three spaces (like Commit does).
    Also, if there's no lock comment, output an empty string (instead of
    letting Python print "None").
  (__main__):  Rework the argument parsing stuff to make input sanity
    checks more ... sane.  Update call to main().


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

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