Subversion: Difference between revisions

No edit summary
No edit summary
Line 7: Line 7:
* ''Don't'' keep transient files under control, particularly things like browser cache or [[bash]] history.
* ''Don't'' keep transient files under control, particularly things like browser cache or [[bash]] history.
* ''Don't'' keep things like [[OpenSSH|ssh]] and [http://www.gnupg.org/ GnuPG] keys in there; use symbolic links and a second repository
* ''Don't'' keep things like [[OpenSSH|ssh]] and [http://www.gnupg.org/ GnuPG] keys in there; use symbolic links and a second repository
==XML svn logs==
As noted on the [[xmlstarlet]] page, svn can generate well-formed XML output for its log command. This can be very handy for writing robust scripts. Use <tt>--xml</tt> to generate XML, and <tt>-v</tt> to provide additional data (files edited, etc).
===Recipes===
* '''All commits from a given authorname USER, with details'''
** <code>svn log -d --xml | xml sel -t -c "//logentry[author='USER']"</code>
* '''All commits to a given repopath PATH, with details'''
** <code>svn log -d --xml | xml sel -t -c "//logentry[paths/path='PATH']"