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=`$SVNLOOK cat $REPOS $FNAME -t

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

2015-06-25 Thread Branko Čibej
d make the command print: contents: $fileContents which is not what he wants ... > *From:* Dhiraj Prajapati [mailto:dhiraj.prajap...@games24x7.com] > > *Sent:* Thursday, June 25, 2015 1:10 AM > *To:* Branko Čibej > *Cc:* users@subversion.apache.org > *Subject:* Re: Facing

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

2015-06-25 Thread Scott Aron Bloom
: Branko Čibej Cc: users@subversion.apache.org Subject: Re: Facing issue in SVN pre commit hook | svnlook cat 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 doi

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

2015-06-25 Thread Branko Čibej
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=`$SVNLOOK cat $REPOS $FNAME -t $TXN` > * > *echo "contents:" $fileContents 1>&2* > > Am I doing anything wrong? Yes of course you are. You really should

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.06.2015 09:31, Dhiraj Praja

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

2015-06-25 Thread Branko Čibej
On 25.06.2015 09:31, Dhiraj Prajapati wrote: > 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 particula

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