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

Bug? Patch can duplicate file contents

From: Matt Southall <matt.southall_at_worktribe.com>
Date: 2007-09-26 14:11:29 CEST

Hi,

I may have discovered a bug that I cannot find mention of when
searching this list or the issue tracker. Apologies if this is
already known about and/or is not a bug.

TortoiseSVN 1.4.5, Build 10425 - 32 Bit , 2007/08/26 11:14:13
Subversion 1.4.5,
apr 0.9.12
apr-iconv 0.9.7
apr-utils 0.9.12
berkeley db 4.4.20
neon 0.26.3
OpenSSL 0.9.8d 28 Sep 2006
zlib 1.2.3

1) Check out a working copy of something
2) Create a new file in there but don't add or commit it.
3) Create a patch against the working copy.
4) Check out another working copy of the same thing.
5) Copy the new file from the first working copy to the second.
6) Apply the patch to the second working copy.
7) The new file in the second working copy now contains two
concatenated copies of itself

Admittedly, copying the file AND applying the patch was a bit daft,
but I did it by mistake and there was no warning generated. I only
noticed when I opened a file and found I had twice as many lines of
code as I was expecting. Personally, I would have expected the patch
to fail due to the target already existing.

Regards,

Matt

--
Matt Southall
Worktribe Ltd
0870 020 1760 
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Wed Sep 26 14:14:09 2007

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.