[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: Re: Obnoxious bug re: 'svn propedit'

From: Ian Brockbank <Ian.Brockbank_at_wolfsonmicro.com>
Date: 2004-09-28 17:27:22 CEST

Hi Branko,

> Derek Foster wrote:
>
> >Hi, folks.
> >
> >I've been experiencing this bug for quite a while, hoping
> that somebody
> >would notice something so obvious and fix it. Apparently
> over the last
> >several releases this hasn't happened, though, so I've
> finally gotten around
> >to reporting it myself. If this isn't the right place,
> please let me know
> >what I need to do to get it on the "should be fixed" list.
> >
> >This bug probably only occurs on Windows systems.
> >
> >In particular, I have my SVN_EDITOR environment variable set
> to the path of
> >Notepad.exe.
> >
> >The main issue is that when I do something like:
> >
> >svn propedit svn:ignore .
> >
> >and then enter a bunch of strings to ignore, such as:
> >
> >build
> >dist
> >myTempFiles
> >
> >and then I later try to edit the text on the same file, using:
> >
> >svn propedit svn:ignore .
> >
> >I get something like:
> >
> >builddistmyTempFiles
> >
> >This is apparently because although the file that I *wrote*
> had MS-DOS
> >linefeeds, the file that I READ now has Unix linefeeds, which Windows
> >Notepad can't handle. I therefore usually have to manually
> regenerate the
> >list from scratch (usually in order to add a single entry to it).
> >
> >It seems to me that Subversion could follow either of two strategies
> >successfully:
> >
> >* When propedit is done the first time, convert the file to
> unix linefeeds
> >to store it, and then convert it back to MS-DOS linefeeds
> (or whatever the
> >client system uses as linefeeds) when retrieving it for the
> second time.
> >
> >
> This is what Subversion _should_ be doing. If it's not,
> that's a bug. As
> a matter of interest, did you commit the propchange between
> the two edits?

I see it too, and I've been meaning to submit a bug on it...

Properties don't get converted back to CRLF for editing on Windows (XP
Pro in my case). Doing some quick tests suggests this is only for
properties svn parses. I've seen it on svn:ignore and svn:externals,
but I tried it just now with foo and all was fine.

With svn:ignore, I do an svn propedit svn:ignore folder4, make a
multi-line edit (using Notepad) and save. I then run the command again
(don't even need to commit) and already it's Unix format.

Cheers,

Cheers,

Ian Brockbank
Senior Applications Software Engineer
e: ian.brockbank@wolfsonmicro.com / apps@wolfsonmicro.com
scd: ian@scottishdance.net
t: +44 131 272 7145
f: +44 131 272 7001

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Sep 28 17:27:34 2004

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.