paampachak Posted June 11, 2013 Report Posted June 11, 2013 [quote name='hushh fatak' timestamp='1370965071' post='1303845879'] wrong taadu lo post endku yesinaav dood [/quote] okkadu kooda dekhatledu em cheyyamantav
hushh fatak Posted June 11, 2013 Author Report Posted June 11, 2013 [quote name='cherlapalli_jailer' timestamp='1370964900' post='1303845865'] if u cannot have access to google ,,,,i can do it for you [/quote] i have access but not getting what i want.. all i get is the a script to find files changed between two revisions
cherlapalli_jailer Posted June 11, 2013 Report Posted June 11, 2013 see if this helps u #!/bin/bash # history_of_file # # Outputs the full history of a given file as a sequence of # logentry/diff pairs. The first revision of the file is emitted as # full text since there's not previous version to compare it to. function history_of_file() { url=$1 # current url of file svn log -q $url | grep -E -e "^r[[:digit:]]+" -o | cut -c2- | sort -n | { # first revision as full text echo read r svn log -r$r $url@HEAD svn cat -r$r $url@HEAD echo # remaining revisions as differences to previous revision while read r do echo svn log -r$r $url@HEAD svn diff -c$r $url@HEAD echo done } } history_of_file $1
hushh fatak Posted June 11, 2013 Author Report Posted June 11, 2013 [quote name='cherlapalli_jailer' timestamp='1370968502' post='1303846107'] see if this helps u #!/bin/bash # history_of_file # # Outputs the full history of a given file as a sequence of # logentry/diff pairs. The first revision of the file is emitted as # full text since there's not previous version to compare it to. function history_of_file() { url=$1 # current url of file svn log -q $url | grep -E -e "^r[[:digit:]]+" -o | cut -c2- | sort -n | { # first revision as full text echo read r svn log -r$r $url@HEAD svn cat -r$r $url@HEAD echo # remaining revisions as differences to previous revision while read r do echo svn log -r$r $url@HEAD svn diff -c$r $url@HEAD echo done } } history_of_file $1 [/quote] bash: syntax error near unexpected token `('
Recommended Posts