commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gilles Sadowski <gil...@harfang.homelinux.org>
Subject Re: [math] subversion auto-props
Date Sat, 19 Jan 2013 19:47:27 GMT
On Sat, Jan 19, 2013 at 06:33:49PM +0100, Thomas Neidhart wrote:
> On 01/19/2013 06:30 PM, Gilles Sadowski wrote:
> > On Sat, Jan 19, 2013 at 06:08:07PM +0100, Thomas Neidhart wrote:
> >> On 01/19/2013 05:49 PM, Gilles Sadowski wrote:
> >>> On Sat, Jan 19, 2013 at 02:56:28PM +0100, Thomas Neidhart wrote:
> >>>> Hi,
> >>>>
> >>>> as I have seen it already multiple times, some people do not seem to
> >>>> have subversion auto-props enabled or configured correctly.
> >>>>
> >>>> You should at least add something like the following to your
> >>>> .subversion/config file in the [auto-props] section:
> >>>>
> >>>> *.java = svn:mime-type=text/plain;svn:eol-style=native;svn:keywords=Id
> >>>> Revision HeadURL
> >>>>
> >>>> Other filetypes may be useful too.
> >>>
> >>> I committed many of those files which you corrected.
> >>>
> >>> This is what I have in "~/.subversion/config" (only relevant parts shown):
> >>>
> >>> [miscellany]
> >>> enable-auto-props = yes
> >>> svn:keywords = Date Author Id Revision
> >>>
> >>> [auto-props]
> >>> *.java = svn:eol-style=native
> >>>
> >>>
> >>> Is that supposed to be OK?
> >>
> >> well, it is ok, but then you have to do the svn propset svn:keywords 'Id
> >> Revision' yourself for every java source file you create.
> > 
> > But then, what is the puupose of "enable-auto-props = yes"?
> > [I thought that a commit would automatically add the properties...]
> 
> but you have to specify which ones:
> 
> >>> *.java = svn:eol-style=native
> 
> this only sets the eol-style, but no keywords. This line specifies the
> keywords to be set: Id Revision
> 
> >>>> *.java = svn:eol-style=native;svn:keywords=Id Revision

OK. Config updated...

Thanks,
Gillles

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message