Daniel Hiller

Software engineer greybeard with a history of 20+ years transforming ☕ into useful stuff for others.
Use gpg-agent for svn password caching
All posts
Set up multiple JDKs with jenv and AdoptOpenJDK

Fetch own commits for last X days

2018-10-12

svn log 

TLDR: Here’s how to fetch the commits you yourself did for the last X days. The example does it for last two weeks:

svn log -v -r {$(date --date="14 day ago" +%Y-%m-%d)}:HEAD --search <user-name>

Explanation: In addition to just using revision numbers svn log -r supports dates and keywords also. Date syntax is pretty easy, just put the date with reverse date format (see ISO 8601) into curly braces for the start and/or end point and there you go.

Mixed notations are supported also btw.

What I wanted to achieve here was not having to enter the start date every single time, so I was using date to calculate the start date on the fly.

Related posts:

Use gpg-agent for svn password caching
All posts
Set up multiple JDKs with jenv and AdoptOpenJDK

Creative Commons License This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. Last update on 2024-11-07. Built by dhiller using Atom (editor), Jekyll (site builder), OneDark vivid (syntax highlighting theme), Webjeda (related posts), Disqus (discussions), Github Pages (hosting), Cloudflare (DNS).