/[Apache-SVN]
ViewVC logotype

Revision 1541558


Jump to revision: Previous Next
Author: julianfoad
Date: Wed Nov 13 15:34:25 2013 UTC (10 years, 5 months ago)
Changed paths: 1
Log Message:
Make 'svnlook.py' usable as a library by adding getter methods.

See the email thread "[PATCH] svnlook.py: Make it usable as a library", from
anatoly to dev@, initially on 2012-05-28 [1] with no response, followed up
starting on 2013-11-09 [2].
  [1] e.g. <http://svn.haxx.se/dev/archive-2012-05/0547.shtml>
  [2] e.g. <http://svn.haxx.se/dev/archive-2013-11/0039.shtml>

Patch by: anatoly techtonik <techtonik{_AT_}gmail.com>

* tools/examples/svnlook.py
  (SVNLook): Convert to new-style class. Change order of initializer
    arguments and make some of them optional, to allow using the class
    without immediately running a print command, and for convenience.
    Add getter methods and adjust existing cmd_* methods to use them.
  (DirsChangedEditor, ChangedEditor): Accept a callback and call it
    instead of directly printing the results.
  (Editor, DiffEditor): Accept a callback, for compatibility, but do not
    call it. These would need to be updated to make the 'tree' and 'diff'
    functionality available.


Changed paths

Path Details
Directorysubversion/trunk/tools/examples/svnlook.py modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26