subversion-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dhiraj Prajapati <>
Subject Facing issue in SVN pre commit hook | svnlook cat
Date Thu, 25 Jun 2015 07:31:38 GMT
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
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:*

<input name=abc/>


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


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,

View raw message