You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Dukhat <u2...@telia.com> on 2006/09/22 07:14:15 UTC

Control the tab/indention settings using svn properties

Hi,

I have briefly discussed this with one of the Ankh team. He recommended 
me to drop off the idea in this forum.

When working with other people, and code from other groups, the tab 
settings generally vary. Generally, that is very annoying.

My suggestion is: Invent a few official subversion properties to control 
the settings. Like  svn:tab=8 svn:indent=4 svn:tabfill=space   or 
svn:tab=8,4,S .

It seems that the above might be feasible for the Ankh plugin, so I'm 
now submitting this idea to a wider audience. There are several tools 
and plugins that could be enhanced to use thses properties if they 
become official.

Regards,
/Micke

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Control the tab/indention settings using svn properties

Posted by Dukhat <u2...@telia.com>.
David Glasser wrote:

> Erik Huelsmann <ehuels <at> gmail.com> writes:
> 
>>No, the Subversion team made an explicit choice not to interpret file
>>content, because it leads to more problems than solutions... I think
>>it's a good idea to keep it that way. BTW: why couldn't Ankh and TSVN
>>agree on a 'separate file' solution? Or why can't they agree on the
>>same property?

I'm sure they can agree on some sort of property if the Ankh team can 
make it work (you never know with M$ stuff)...

> I agree with Erik that this doesn't really belong in Subversion.
> 
> However, storing information like tab width in properties is a reasonable idea.
>  One suggestion is that some folks decide to get together and come up with a
> standard set of properties with a common prefix (say, "text-") with common
> meaning, and try to spread that standard. But it doesn't need to be part of
> Subversion itself.

Thank you for seeing and commenting the idea and not the faults in the 
suggestion.

The thought behind Subversion pushing was that it would have happened, 
if they'd wanted it to. If they'd put it in "text-", all the better. I 
fully agree that in the long run, it should not have been a part of 
Subversion.
However, with me behind the keyboard, pushing, it just won't happen. And 
if some folks I know cared to decide something, that standard would have 
the chance of a snowball in hell. As far as I'm concerned, the idea is 
as dead as the proverbial doorknob unless someone else picks it up.

/Micke

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Control the tab/indention settings using svn properties

Posted by David Glasser <gl...@mit.edu>.
Erik Huelsmann <ehuels <at> gmail.com> writes:
> No, the Subversion team made an explicit choice not to interpret file
> content, because it leads to more problems than solutions... I think
> it's a good idea to keep it that way. BTW: why couldn't Ankh and TSVN
> agree on a 'separate file' solution? Or why can't they agree on the
> same property?

I agree with Erik that this doesn't really belong in Subversion.

However, storing information like tab width in properties is a reasonable idea.
 One suggestion is that some folks decide to get together and come up with a
standard set of properties with a common prefix (say, "text-") with common
meaning, and try to spread that standard. But it doesn't need to be part of
Subversion itself.

--dave

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Control the tab/indention settings using svn properties

Posted by Erik Huelsmann <eh...@gmail.com>.
On 9/23/06, Dukhat <u2...@telia.com> wrote:
> Kenneth Porter wrote:
>
>  > On Friday, September 22, 2006 9:14 AM +0200 Dukhat
> <u2...@telia.com> wrote:
>  >
>  >> My suggestion is: Invent a few official subversion properties to control
>  >> the settings. Like  svn:tab=8 svn:indent=4 svn:tabfill=space   or
>  >> svn:tab=8,4,S .
>  >
>  >
>  >
>  > I question putting them in the "svn:" namespace, since Subversion
> isn't directly involved in the editing of text files.
>
>
> No, agreed, Subversion doesn't do that. However at least the tab-size is
> a part of the file's rendering, i.e. a part of the file's properties
> which should be stored and versioned.
>
>  > Some editors recognize this kind of control in the form of special
> source code comments. Moving this information to Subversion properties
> would mean that editors would need to link the Subversion libraries to
> access them.
>
> No, they would use the plug-ins: Ankh for VS, something for emacs etc.
> Those two would cover a large part of the users.

emacs and vi already have support to detect in-file tab size comments.
That's exactly what Kenneth was referring to. Why can't Ankh extract
exactly this information from the file content?

>  > Instead, I would suggest putting source style information in a
> separate file so that users of any version control system could access it.
>
> Very nice... in theory. However, in real life that would imply yet
> another hopelessly ignored library.

Then why does this work great for both vi and emacs?!

> In real life, "cat" on linux and "type" on windows will never use any
> solution to detect tab-size, whether it be a separate file or version
> control system.

Right. Neither will 'svn cat' or 'svn diff'... They will just print
the tab character to the console.

> No, this property is for coders using the Subversion flavoured tools.
> There is a real chance that if Subversion describes this property, the
> tools and utilities can pick it up quite fast. For example, svn diff
> could lead the way. If TortoiseSVN and Ankh adopt, the Windows world is
> largely covered.

'svn diff' doesn't interpret the file content. I agree that if Ankh
and TSVN adopt that the windows world would be largely covered, but
how would we make Subversion on linux behave like Subversion on
Windows?

No, the Subversion team made an explicit choice not to interpret file
content, because it leads to more problems than solutions... I think
it's a good idea to keep it that way. BTW: why couldn't Ankh and TSVN
agree on a 'separate file' solution? Or why can't they agree on the
same property?

> But, the separate file solution could gain ground IFF the Subversion
> team would implement such a stand-alone library for all platforms. And
> use it themselves, of course. Adopting a third party solution might also
> work, if done officially by the Subversion team.

Although I do see the benefit, I see hardly any relation to version control...

bye,

Erik.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Control the tab/indention settings using svn properties

Posted by Dukhat <u2...@telia.com>.
Kenneth Porter wrote:

 > On Friday, September 22, 2006 9:14 AM +0200 Dukhat 
<u2...@telia.com> wrote:
 >
 >> My suggestion is: Invent a few official subversion properties to control
 >> the settings. Like  svn:tab=8 svn:indent=4 svn:tabfill=space   or
 >> svn:tab=8,4,S .
 >
 >
 >
 > I question putting them in the "svn:" namespace, since Subversion 
isn't directly involved in the editing of text files.


No, agreed, Subversion doesn't do that. However at least the tab-size is 
a part of the file's rendering, i.e. a part of the file's properties 
which should be stored and versioned.

 > Some editors recognize this kind of control in the form of special 
source code comments. Moving this information to Subversion properties 
would mean that editors would need to link the Subversion libraries to 
access them.


No, they would use the plug-ins: Ankh for VS, something for emacs etc. 
Those two would cover a large part of the users.

 > Instead, I would suggest putting source style information in a 
separate file so that users of any version control system could access it.


Very nice... in theory. However, in real life that would imply yet 
another hopelessly ignored library.

In real life, "cat" on linux and "type" on windows will never use any 
solution to detect tab-size, whether it be a separate file or version 
control system.

No, this property is for coders using the Subversion flavoured tools. 
There is a real chance that if Subversion describes this property, the 
tools and utilities can pick it up quite fast. For example, svn diff 
could lead the way. If TortoiseSVN and Ankh adopt, the Windows world is 
largely covered.

But, the separate file solution could gain ground IFF the Subversion 
team would implement such a stand-alone library for all platforms. And 
use it themselves, of course. Adopting a third party solution might also 
work, if done officially by the Subversion team.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Control the tab/indention settings using svn properties

Posted by Kenneth Porter <sh...@sewingwitch.com>.
On Friday, September 22, 2006 9:14 AM +0200 Dukhat <u2...@telia.com> 
wrote:

> My suggestion is: Invent a few official subversion properties to control
> the settings. Like  svn:tab=8 svn:indent=4 svn:tabfill=space   or
> svn:tab=8,4,S .

I question putting them in the "svn:" namespace, since Subversion isn't 
directly involved in the editing of text files.

Some editors recognize this kind of control in the form of special source 
code comments. Moving this information to Subversion properties would mean 
that editors would need to link the Subversion libraries to access them.

Instead, I would suggest putting source style information in a separate 
file so that users of any version control system could access it.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org