Вы можете попробовать следующий фрагмент PowerShell:
$x = [xml](svn log https://svn.apache.org/repos/asf/subversion/trunk -l 3 --xml)
$x.log.logentry | Format-List -Property @{n='Date'; e={($_.Date)}}, @{n='Log message'; e={($_.msg)}}
Он печатает сообщение журнала и дату последних 3 коммитов.Вот пример:
Date : 2019-01-31T21:28:04.122821Z
Log message : * subversion/libsvn_client/wc_editor.c
(svn_client__wc_copy_mods): Remove the WC locking, now that the
WC editor does it, following r1852559.
Date : 2019-01-31T19:36:52.166250Z
Log message : Comment out a failing swig-rb test.
Issue 4805, "delta path editor binding broken for root path".
* subversion/bindings/swig/ruby/test/test_delta.rb
(test_path_driver): Comment out (as no XFail mechanism is available).
Date : 2019-01-31T16:51:48.130607Z
Log message : Improve backward compatibility for svn_delta_path_driver2().
This ensures the input array is not modified, and changes the behaviour to
be less surprising.
* subversion/include/svn_delta.h,
subversion/libsvn_delta/deprecated.c
(svn_delta_path_driver2): Add back slash prefixes if any, rather than the
first, of the inputs had one. Duplicate the array if modifying it.
Вы также можете заменить командлет Format-List
на Select-Object
, и результат будет другим:
Date Log message
---- -----------
2019-01-31T21:28:04.122821Z * subversion/libsvn_client/wc_editor.c...
2019-01-31T19:36:52.166250Z Comment out a failing swig-rb test....
2019-01-31T16:51:48.130607Z Improve backward compatibility for svn_delta_path_driver2()....