I need to get SVN revision numbers for particular date range , following steps has been done.
svn log -r {2012-05-01}:{2012-05-03} URL >> svn_log_r_2012_05_01_2012_05_03.txt
You will get all revisions for specified date range.
sed -n '/r[0-9]/p' svn_log_r_2012_05_01_2012_05_03.txt > out1.txt
Remove unwanted lines.
sed 's/\([^|]*\).*/\1/' out1.txt > out2.txt
Extract ‘r123’ pattern column.
sed 's/r/ /' out2.txt > revision_no_list.txt
Remove 'r' from file.
Resources - http://sed.sourceforge.net
svn log -r {2012-05-01}:{2012-05-03} URL >> svn_log_r_2012_05_01_2012_05_03.txt
You will get all revisions for specified date range.
sed -n '/r[0-9]/p' svn_log_r_2012_05_01_2012_05_03.txt > out1.txt
Remove unwanted lines.
sed 's/\([^|]*\).*/\1/' out1.txt > out2.txt
Extract ‘r123’ pattern column.
sed 's/r/ /' out2.txt > revision_no_list.txt
Remove 'r' from file.
Resources - http://sed.sourceforge.net
Comments
Post a Comment