You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Nathan Nobbe <qu...@gmail.com> on 2007/09/17 12:45:40 UTC
committing changes to file metadata
hello all,
im working w/ a project versioned under svn.
many of the files in the project have windows newline characters.
since we use linux as the server this is very annoying when opening the
files on the linux systems.
i have found a program to convert the windows newlines to unix newlines
and applied it recursively to the source. now i would like to commit the
change,
however, svn does not recognize the change to the metadata as eligible for a
commit.
is there a way to tell svn i want to commit the changes to the file
metadata?
thanks,
-nathan
Re: committing changes to file metadata
Posted by Erik Huelsmann <eh...@gmail.com>.
On 9/17/07, Nathan Nobbe <qu...@gmail.com> wrote:
> Erik,
>
> i believe you must be right regarding this program setting the modification
> date of the files.
> i think i will still try to change all the files in the source to a unix
> style convention and then
> get our developers to use the svn:eol-style property.
> can you answer some questions about the property. if i set the property in
> the root directory
> of a working copy of the source, will it be applied to all files in the wc?
I'm not sure, but I believe that when you do 'svn -R propset
svn:eol-style native .', then, yes, it will be set on all files, but
also on all directories. (The latter may not be what you want)
> and if i then commit
> the wc w/ the property applied, will it be set when other developers check
> out those files?
When they check out or update, yes. Also, the eol style convention
will be changed in their files too.
HTH,
Erik.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: committing changes to file metadata
Posted by Nathan Nobbe <qu...@gmail.com>.
Erik,
i believe you must be right regarding this program setting the modification
date of the files.
i think i will still try to change all the files in the source to a unix
style convention and then
get our developers to use the svn:eol-style property.
can you answer some questions about the property. if i set the property in
the root directory
of a working copy of the source, will it be applied to all files in the wc?
and if i then commit
the wc w/ the property applied, will it be set when other developers check
out those files?
thanks,
-nathan
On 9/17/07, Erik Huelsmann <eh...@gmail.com> wrote:
>
> On 9/17/07, Nathan Nobbe <qu...@gmail.com> wrote:
> > hello all,
> >
> > im working w/ a project versioned under svn.
> > many of the files in the project have windows newline characters.
> > since we use linux as the server this is very annoying when opening the
> > files on the linux systems.
> > i have found a program to convert the windows newlines to unix newlines
> > and applied it recursively to the source. now i would like to commit
> the
> > change,
> > however, svn does not recognize the change to the metadata as eligible
> for a
> > commit.
> > is there a way to tell svn i want to commit the changes to the file
> > metadata?
>
> Nathan,
>
> From what you describe, I think didn't change the metadata
> (svn:eol-style) but the content of the files (CRLF->LF). Additionally,
> the tool will have reset the last-modified date on the files back to
> what it was before changing the content. Subversion uses the
> last-modified date as a means to check whether a file might have
> changed since it last updated/checkedout that file, meaning it won't
> notice the change. (In 1.5, it will start looking at the filesize
> too.)
>
> If you want to use a mixed-eol-style environment, you should consider
> setting the svn:eol-style property on your sources to 'native'. See
>
> http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html#svn.advanced.props.special.eol-style
> .
>
> bye,
>
> Erik.
>
Re: committing changes to file metadata
Posted by Erik Huelsmann <eh...@gmail.com>.
On 9/17/07, Nathan Nobbe <qu...@gmail.com> wrote:
> hello all,
>
> im working w/ a project versioned under svn.
> many of the files in the project have windows newline characters.
> since we use linux as the server this is very annoying when opening the
> files on the linux systems.
> i have found a program to convert the windows newlines to unix newlines
> and applied it recursively to the source. now i would like to commit the
> change,
> however, svn does not recognize the change to the metadata as eligible for a
> commit.
> is there a way to tell svn i want to commit the changes to the file
> metadata?
Nathan,