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

Re: I need help in SVN mv and SVN cp

From: Stefan Sperling <stsp_at_elego.de>
Date: Wed, 17 Aug 2016 11:14:29 +0200

On Wed, Aug 17, 2016 at 02:25:04PM +0530, rags bhat wrote:
> Ok let me explain.
> I had a makefile
> I used svn cp makefile makefilecp
> then
> i used svn mv makefile makefilemv
> Generated patch
> using svn diff --git >patchfile
> then applied this in new SB which has no changes done, using svn patch
> patchfile
> all there targets are skipped, nothing got patched.

Git diffs add "a/" and "b/" prefixes to all paths in the patch file.
So try again with 'svn patch --strip 1'.

If that doesn't help could you show us the output of the failing
'svn patch' command, and the header lines of the patch files?
You don't need to show file content changes, just the headers which
look similar to this:
Index: beta
diff --git a/trunk/beta b/trunk/beta
deleted file mode 100644
--- a/trunk/beta (revision 2)
+++ /dev/null (nonexistent)
Received on 2016-08-17 11:14:35 CEST

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