Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get all revisions in subversion URL (trunk/branch) based on a string in svn comments?

Need some help on shell command to get all revs in subversion trunk URL based on a string in svn comments.

I figured out to get it on one file but not on URL.

I tried svn log URL --stop-on-copy and svn log URL --xml to get the revs but unsuccessful.

Thanks !!

like image 707
iaav Avatar asked Jan 25 '26 21:01

iaav


1 Answers

Another way using sed. It's probably not perfect but it also works with multiline comments. Replace SEARCH_STRING for your personal search.

svn log -l100 | sed -n '/^r/{h;d};/SEARCH_STRING/{g;s/^r\([[:digit:]]*\).*/\1/p}'
like image 100
sschmeck Avatar answered Jan 28 '26 15:01

sschmeck



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!