You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by mindspin311 <co...@gmail.com> on 2009/04/02 19:45:05 UTC

Validating a new transaction with svnlook cat -t

I'm trying to validate all yaml files that are committed to check if they
meet our standards (i.e. dev/prod/qa environments not having different
variables).

When I do svnlook -t $TXN /var/svn/repos trunk/xxxx/file.yml, It returns a
single line string. I don't want this. Half the point of validating a yaml
file is making sure that it is well formed. I can't have my script load the
yaml file the way it is. 

Is there a way I can get the latest file + the transaction with all the
spaces and returns?
-- 
View this message in context: http://www.nabble.com/Validating-a-new-transaction-with-svnlook-cat--t-tp22855618p22855618.html
Sent from the Subversion Users mailing list archive at Nabble.com.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1523409

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: Validating a new transaction with svnlook cat -t

Posted by David Weintraub <qa...@gmail.com>.
What is the svnlook subcommand you're running?  You don't list that:

    svnlook -t $TXN /var/svn/repos trunk/xxxx/file.yml

Do you mean:

    svnlook cat -t $TXN /var/svn/repos trunk/xxxx/file.yml

instead?

I'm assuming "svnlook cat". It is possible that the YML file is
formatted with just <LF> line endings and not <CR><LF>, and that
you're reading this from a Windows system?

What language is your hook script written in?


On Thu, Apr 2, 2009 at 3:45 PM, mindspin311 <co...@gmail.com> wrote:
> I'm trying to validate all yaml files that are committed to check if they
> meet our standards (i.e. dev/prod/qa environments not having different
> variables).
>
> When I do svnlook -t $TXN /var/svn/repos trunk/xxxx/file.yml, It returns a
> single line string. I don't want this. Half the point of validating a yaml
> file is making sure that it is well formed. I can't have my script load the
> yaml file the way it is.
>
> Is there a way I can get the latest file + the transaction with all the
> spaces and returns?
> --
> View this message in context: http://www.nabble.com/Validating-a-new-transaction-with-svnlook-cat--t-tp22855618p22855618.html
> Sent from the Subversion Users mailing list archive at Nabble.com.
>
> ------------------------------------------------------
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1523409
>
> To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
>



-- 
David Weintraub
qazwart@gmail.com

All attachments have been scanned for viruses and have been found to
be virus free. So,  just go ahead and open them. Go ahead... Just
click on it... Trust me.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1523666

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].