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

RE: svnlook cat for xml files

From: Erik Hemdal <erik_at_comprehensivepower.com>
Date: Wed, 17 Dec 2008 11:08:40 -0500

-----Original Message-----
From: Ilan Yaniv [mailto:Ilan.Yaniv_at_timetoknow.org]
Sent: Wednesday, December 17, 2008 10:46 AM
To: Erik Hemdal; users_at_subversion.tigris.org
Subject: RE: svnlook cat for xml files

Yes, on command window it looks ok

But from a exe (created from perl) I run the command:

 

my $cat = `$svnlook cat $repos $path`;

            print STDERR "cat before: $cat\n";

 

Maybe it is because I am using back ticks for running the command.

Still I am getting only rows that are not starting with <.

 

If things are OK in a Command Prompt window, then I think Subversion is
doing its job, and the issue lies with your Perl script. That's kind of off
topic for the SVN list, I think.

 

You have several layers of complexity here, you've created a binary from
Perl using an external tool, you're taking output directly from a command,
and you're doing it in a hook script. I would try working on the original
Perl script from the command line, try reading a plain file, not from the
output of svnlook cat, etc. and see what is working and what isn't working.
Once you get a basic script working, add the layers back and see where
things go wrong.

 

Erik

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2008-12-17 17:09:56 CET

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.