Re: Facing issue in SVN pre commit hook | svnlook cat

2015-06-25 Thread Dhiraj Prajapati
Thanks a lot. I am a newbie to shell script. I appreciate your help. On 25 Jun 2015 13:45, "Branko Čibej" wrote: > On 25.06.2015 10:10, Dhiraj Prajapati wrote: > > Below is the code snippet I am using. I need the file contents in a > variable. > > > *fileContents

Re: Facing issue in SVN pre commit hook | svnlook cat

2015-06-25 Thread Dhiraj Prajapati
Below is the code snippet I am using. I need the file contents in a variable. *fileContents=`$SVNLOOK cat $REPOS $FNAME -t $TXN`* *echo "contents:" $fileContents 1>&2* Am I doing anything wrong? -Dhiraj On Thu, Jun 25, 2015 at 1:37 PM, Branko Čibej wrote: > On 25.0

Facing issue in SVN pre commit hook | svnlook cat

2015-06-25 Thread Dhiraj Prajapati
Hi, I have a pre-commit hook which validates the contents of the files being committed before commit. I am using *svnlook cat* command to read the contents of the file being committed. However, whenever there is a leading slash on a particular line in the file, the *svnlook cat* command fails to di