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

Re: Creating and applying a patch

From: Kevin Grover <kevin_at_kevingrover.net>
Date: Thu, 13 Mar 2008 18:32:26 -0700

On Thu, Mar 13, 2008 at 2:38 PM, Wayne <wayne_at_zk.com> wrote:
> Nicolas Alvarez wrote:
> > Wayne escribió:
> >> I guess that I was not clear (my description assumed that newlines
> >> are line terminators.)What I should have said is that they had an
> >> extra EOL. I think that this is what you are trying to say above.
> >
> > So in other words, there were two EOLs (instead of only one as usual)
> > at the end of the file?
> >
> >> However, just for good measures I added 4 consecutive EOLs to the end
> >> of a file and repeated the experiment. The patched file now has 5
> >> EOLs in it.
> >
> > Good idea making that experiment... Sounds like an actual bug then;
> > but I can't test it myself right now.
> >
> Can anyone else verify this? I just tried another set of files and one
> or two did not have the extra EOL.
>
> Also, I am not as familiar with the svn command line tool. Does anyone
> know that commands to do the equivalent with it of the top of their
> head? If not I'll have to wait until next week to figure it out.
>
>
>

To create the patch, use svn diff:

'svn diff > blah.patch'

You'll need the patch command to apply it:

'patch -p0 < blah.patch'

You can get a Windows exe for patch from http://UnxUtils.sf.net (or
MSYS, or Cygwin)

- Kevin

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_tortoisesvn.tigris.org
For additional commands, e-mail: dev-help_at_tortoisesvn.tigris.org
Received on 2008-03-14 02:33:40 CET

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

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