Jump to content

Calling Svn Experts, Admins


Recommended Posts

Posted

[quote name='hushh fatak' timestamp='1370965071' post='1303845879']


wrong taadu lo post endku yesinaav dood
[/quote]

okkadu kooda dekhatledu em cheyyamantav

Posted

[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

Posted

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

Posted

[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 `('

×
×
  • Create New...