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

svn diff bug !?!?

From: Daniele Nicolodi <daniele_at_grinta.net>
Date: 2002-09-26 22:58:20 CEST

I thing that the current svn diff output is broken if it is intended to
be patch compliant. If you add a file to the repo and then try to obtain
a patch to replicate that modify in an another working copy you get a
broken patch file.

Reproducing that is quite simple:

1) in working dir A
   $ svn update
   Updated to version X

2) in working dir B
   $ svn update
   Updated to version X

3) in working dir A
   $ echo "thi is only a test" > test
   $ svn add test
   $ svn ci
   $ svn diff -r(X-1):(X) > test.patch

4) in working dir B
   $ patch -p0 < /path/to/test.patch
   ... a lot of errors ...

If you look at the patch you can see that file names inside id aren't
translated correctly int working copy file names but they are something
like "tmp.XXXX.XXX".

I have tried this also specifing "svn diff -x -ruP".

Now i haven't time to investigate this bug but if anyone can't/wouldn't
work on that i can look at it on the weekend.

Ciao

-- 
Daniele
		    --- http://www.grinta.net ---
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Sep 26 22:59:09 2002

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