[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Facing issue in SVN pre commit hook | svnlook cat

From: Dhiraj Prajapati <dhiraj.prajapati_at_games24x7.com>
Date: Thu, 25 Jun 2015 13:01:38 +0530

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 display the slash. Instead it
prints the names of all the files/folders in the root directory.

*Example file contents:*

xyz
<input name=abc/>
/*
abc

*Command:*

svnlook cat <repository_path> <file_name> -t <txn>

*Output:*

xyz <input name=abc/> /app /bin /boot /cdrom /dev /etc /home /lib
/lost+found /media /mnt /opt /proc /root /run /sbin /sources /srv /sys /tmp
/usr /var /vmlinuz /vmlinuz.old abc

I want* svnlook cat* to print exactly what is in the file. Please assist.

Thanks in advance,
Dhiraj
Received on 2015-06-25 09:36:50 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.