[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: Ilan Yaniv <Ilan.Yaniv_at_timetoknow.org>
Date: Wed, 17 Dec 2008 17:45:36 +0200

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 <...

 

________________________________

From: Erik Hemdal [mailto:erik_at_comprehensivepower.com]
Sent: Wednesday, December 17, 2008 5:30 PM
To: Ilan Yaniv; users_at_subversion.tigris.org
Subject: RE: svnlook cat for xml files

 

 

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

        Hi,

        I have this xml file:

        Yellow Flower58

        <BBB>ZZZZ</BBB>

        <statefule>false</statefule>

        AAA

        Now I want to parse this file.

        I use the command svnlook cat <REPOSE_PATH> <FILE_PATH>.

        The output of the cat command is:

                Yellow Flower58

        <BBB

        AAA

        This is odd because there is a full line missing, but where?

         

        I ran a sample test using svnlook cat on a text file in one of
my repositories and found that the entire contents of my file are what I
expected. I had the file checked out to a working copy and verified
that the results of the svnlook cat match the real contents of the file.

        I would first check to see that your repository is intact and
not corrupted somehow. Then I would try checking out the file and
verifying that the contents are what you expect, try checking out to a
fresh WC and examining the contents.

        Assuming that this all checks out, I believe that will identify
if you have a Subversion issue or some other issue. Erik

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2008-12-17 16:48:50 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.