unix - Get only files committed info in svn log -verbose -
how files committed output svn -verbose
svn log -v . -r 101 ------------------------------------------------------------------------ r101 | username | 2013-05-10 16:27:55 -0400 (fri, 10 may 2013) | 1 line changed paths: m /branches/1.0/ssac/codes/filename1.java m /branches/1.0/ssac/extn/filename2.java m /branches/1.0/ssac/extn/filename3.java m /branches/1.0/ssac/extn/filenmae4.java m /branches/1.0/ssac/extn/filename5.java m /branches/1.0/vclpcc/filename6.java ticket-1
i tired this:
svn log -v . -r 101 | awk '/changed paths/{ p=1; next } /ticket-1/ {exit} p'
output:
m /branches/1.0/ssac/codes/filename1.java m /branches/1.0/ssac/extn/filename2.java m /branches/1.0/ssac/extn/filename3.java m /branches/1.0/ssac/extn/filenmae4.java m /branches/1.0/ssac/extn/filename5.java m /branches/1.0/vclpcc/filename6.java
is there better way ? , truncate "m" meta data ?
intended output:
/branches/1.0/ssac/codes/filename1.java /branches/1.0/ssac/extn/filename2.java /branches/1.0/ssac/extn/filename3.java /branches/1.0/ssac/extn/filenmae4.java /branches/1.0/ssac/extn/filename5.java /branches/1.0/vclpcc/filename6.java
this should trick:
$ svn log -v . -r 101 | awk '$1~/^[amd]$/{for(i=2;i<=nf;i++)print $i}' /branches/1.0/ssac/codes/filename1.java /branches/1.0/ssac/extn/filename2.java /branches/1.0/ssac/extn/filename3.java /branches/1.0/ssac/extn/filenmae4.java /branches/1.0/ssac/extn/filename5.java /branches/1.0/vclpcc/filename6.java
Comments
Post a Comment