You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by Jean-Marc Spaggiari <je...@spaggiari.org> on 2013/09/13 22:44:04 UTC

SVN vs XML vs BINARY vs TEXT...

Hi,

In trunk, SVN show XML files beeing BINARY. So it's not letting me do nice
diffs from eclipse. I'm wondering if it's an issue into the repository? Or
on my side  (settings/eclipse/etc). Does anyone also have the XMLs shown as
binaries?

Thanks,

JM

Re: SVN vs XML vs BINARY vs TEXT...

Posted by Jean-Marc Spaggiari <je...@spaggiari.org>.
@stack: We have some XML files already considered as TEXT files, so I would
recommend to allign all the files under the same format (TEXT).

@Elliott: Excellent, thanks. Keep me posted when it's done so I can
generate my patch from Eclipse.

JM


2013/9/19 Elliott Clark <ec...@apache.org>

> On Thu, Sep 19, 2013 at 10:38 PM, Stack <st...@duboce.net> wrote:
> > Want us to set config in our repo so they are treated as text JMS?
>
> I can give it a try tomorrow
>
> http://stackoverflow.com/questions/458609/how-to-explicity-tell-svn-to-treat-a-file-as-text-not-binary
>

Re: SVN vs XML vs BINARY vs TEXT...

Posted by Elliott Clark <ec...@apache.org>.
On Thu, Sep 19, 2013 at 10:38 PM, Stack <st...@duboce.net> wrote:
> Want us to set config in our repo so they are treated as text JMS?

I can give it a try tomorrow
http://stackoverflow.com/questions/458609/how-to-explicity-tell-svn-to-treat-a-file-as-text-not-binary

Re: SVN vs XML vs BINARY vs TEXT...

Posted by Stack <st...@duboce.net>.
On Thu, Sep 19, 2013 at 5:45 PM, Jean-Marc Spaggiari <
jean-marc@spaggiari.org> wrote:

> Good to see that I'm not the only one. So sound like some files .XML are
> marked as "Binary"... We need to fix that. Any commiter to look at that?
>
>
I suppose XML files could have binary in it (CDATA).

If you add --force do the diff it will dump out the diff.

Looks like svn treats application/xml as binary [1]

Want us to set config in our repo so they are treated as text JMS?

St.Ak

1. http://subversion.apache.org/faq.html#binary-files

Re: SVN vs XML vs BINARY vs TEXT...

Posted by Jean-Marc Spaggiari <je...@spaggiari.org>.
Good to see that I'm not the only one. So sound like some files .XML are
marked as "Binary"... We need to fix that. Any commiter to look at that?


2013/9/17 Paulo Ricardo Paz Vital <pv...@linux.vnet.ibm.com>

> Hey JM,
>
> Yeah, this file is set as binary in my local SVN repository and I
> couldn't generate a patch from it.
>
> Regards, Paulo Vital.
>
> On Fri, 2013-09-13 at 17:32 -0400, Jean-Marc Spaggiari wrote:
> > Can you try with src/main/docbkx/ops_mgt.xml ? Some of the XML files are
> > working fine for me. Like hbase-default.xml. But some are not, like
> > src/main/docbkx/ops_mgt.xml.
> >
> >
> > 2013/9/13 Paulo Ricardo Paz Vital <pv...@linux.vnet.ibm.com>
> >
> > > I followed the steps in [1] to configure my Eclipse (4.2.2) and import
> > > the trunk code.
> > >
> > > When trying to create a patch based in any XML file, I don't have any
> > > problem [2]. All other Eclipse configuration is the default values.
> > >
> > > [1] http://hbase.apache.org/book/ides.html
> > > [2] http://pastebin.com/77YzQyu6
> > >
> > > Best regards, Paulo Vital
> > >
> > >
> > > On Fri, 2013-09-13 at 16:49 -0400, Jean-Marc Spaggiari wrote:
> > > > This is what I get when I try to create a patch over a modified XML
> file
> > > > directly from eclipse:
> > > >
> > > > Index: src/main/docbkx/ops_mgt.xml
> > > > ===================================================================
> > > > Cannot display: file marked as a binary type.
> > > > svn:mime-type = application/xml
> > > >
> > > > Any clue?
> > > >
> > > >
> > > > 2013/9/13 Jean-Marc Spaggiari <je...@spaggiari.org>
> > > >
> > > > > Hi,
> > > > >
> > > > > In trunk, SVN show XML files beeing BINARY. So it's not letting me
> do
> > > nice
> > > > > diffs from eclipse. I'm wondering if it's an issue into the
> > > repository? Or
> > > > > on my side  (settings/eclipse/etc). Does anyone also have the XMLs
> > > shown as
> > > > > binaries?
> > > > >
> > > > > Thanks,
> > > > >
> > > > > JM
> > > > >
> > >
> > >
> > >
>
>
>

Re: SVN vs XML vs BINARY vs TEXT...

Posted by Paulo Ricardo Paz Vital <pv...@linux.vnet.ibm.com>.
Hey JM,

Yeah, this file is set as binary in my local SVN repository and I
couldn't generate a patch from it.

Regards, Paulo Vital.

On Fri, 2013-09-13 at 17:32 -0400, Jean-Marc Spaggiari wrote:
> Can you try with src/main/docbkx/ops_mgt.xml ? Some of the XML files are
> working fine for me. Like hbase-default.xml. But some are not, like
> src/main/docbkx/ops_mgt.xml.
> 
> 
> 2013/9/13 Paulo Ricardo Paz Vital <pv...@linux.vnet.ibm.com>
> 
> > I followed the steps in [1] to configure my Eclipse (4.2.2) and import
> > the trunk code.
> >
> > When trying to create a patch based in any XML file, I don't have any
> > problem [2]. All other Eclipse configuration is the default values.
> >
> > [1] http://hbase.apache.org/book/ides.html
> > [2] http://pastebin.com/77YzQyu6
> >
> > Best regards, Paulo Vital
> >
> >
> > On Fri, 2013-09-13 at 16:49 -0400, Jean-Marc Spaggiari wrote:
> > > This is what I get when I try to create a patch over a modified XML file
> > > directly from eclipse:
> > >
> > > Index: src/main/docbkx/ops_mgt.xml
> > > ===================================================================
> > > Cannot display: file marked as a binary type.
> > > svn:mime-type = application/xml
> > >
> > > Any clue?
> > >
> > >
> > > 2013/9/13 Jean-Marc Spaggiari <je...@spaggiari.org>
> > >
> > > > Hi,
> > > >
> > > > In trunk, SVN show XML files beeing BINARY. So it's not letting me do
> > nice
> > > > diffs from eclipse. I'm wondering if it's an issue into the
> > repository? Or
> > > > on my side  (settings/eclipse/etc). Does anyone also have the XMLs
> > shown as
> > > > binaries?
> > > >
> > > > Thanks,
> > > >
> > > > JM
> > > >
> >
> >
> >



Re: SVN vs XML vs BINARY vs TEXT...

Posted by Jean-Marc Spaggiari <je...@spaggiari.org>.
Can you try with src/main/docbkx/ops_mgt.xml ? Some of the XML files are
working fine for me. Like hbase-default.xml. But some are not, like
src/main/docbkx/ops_mgt.xml.


2013/9/13 Paulo Ricardo Paz Vital <pv...@linux.vnet.ibm.com>

> I followed the steps in [1] to configure my Eclipse (4.2.2) and import
> the trunk code.
>
> When trying to create a patch based in any XML file, I don't have any
> problem [2]. All other Eclipse configuration is the default values.
>
> [1] http://hbase.apache.org/book/ides.html
> [2] http://pastebin.com/77YzQyu6
>
> Best regards, Paulo Vital
>
>
> On Fri, 2013-09-13 at 16:49 -0400, Jean-Marc Spaggiari wrote:
> > This is what I get when I try to create a patch over a modified XML file
> > directly from eclipse:
> >
> > Index: src/main/docbkx/ops_mgt.xml
> > ===================================================================
> > Cannot display: file marked as a binary type.
> > svn:mime-type = application/xml
> >
> > Any clue?
> >
> >
> > 2013/9/13 Jean-Marc Spaggiari <je...@spaggiari.org>
> >
> > > Hi,
> > >
> > > In trunk, SVN show XML files beeing BINARY. So it's not letting me do
> nice
> > > diffs from eclipse. I'm wondering if it's an issue into the
> repository? Or
> > > on my side  (settings/eclipse/etc). Does anyone also have the XMLs
> shown as
> > > binaries?
> > >
> > > Thanks,
> > >
> > > JM
> > >
>
>
>

Re: SVN vs XML vs BINARY vs TEXT...

Posted by Paulo Ricardo Paz Vital <pv...@linux.vnet.ibm.com>.
I followed the steps in [1] to configure my Eclipse (4.2.2) and import
the trunk code. 

When trying to create a patch based in any XML file, I don't have any
problem [2]. All other Eclipse configuration is the default values.

[1] http://hbase.apache.org/book/ides.html
[2] http://pastebin.com/77YzQyu6

Best regards, Paulo Vital
 

On Fri, 2013-09-13 at 16:49 -0400, Jean-Marc Spaggiari wrote:
> This is what I get when I try to create a patch over a modified XML file
> directly from eclipse:
> 
> Index: src/main/docbkx/ops_mgt.xml
> ===================================================================
> Cannot display: file marked as a binary type.
> svn:mime-type = application/xml
> 
> Any clue?
> 
> 
> 2013/9/13 Jean-Marc Spaggiari <je...@spaggiari.org>
> 
> > Hi,
> >
> > In trunk, SVN show XML files beeing BINARY. So it's not letting me do nice
> > diffs from eclipse. I'm wondering if it's an issue into the repository? Or
> > on my side  (settings/eclipse/etc). Does anyone also have the XMLs shown as
> > binaries?
> >
> > Thanks,
> >
> > JM
> >



Re: SVN vs XML vs BINARY vs TEXT...

Posted by Jean-Marc Spaggiari <je...@spaggiari.org>.
This is what I get when I try to create a patch over a modified XML file
directly from eclipse:

Index: src/main/docbkx/ops_mgt.xml
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/xml

Any clue?


2013/9/13 Jean-Marc Spaggiari <je...@spaggiari.org>

> Hi,
>
> In trunk, SVN show XML files beeing BINARY. So it's not letting me do nice
> diffs from eclipse. I'm wondering if it's an issue into the repository? Or
> on my side  (settings/eclipse/etc). Does anyone also have the XMLs shown as
> binaries?
>
> Thanks,
>
> JM
>