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

Re: Question about creating patch

From: Ryan Schmidt <subversion-2009d_at_ryandesign.com>
Date: Fri, 27 Nov 2009 20:08:20 -0600

On Nov 27, 2009, at 19:17, Neo Anderson wrote:

> I participate in a project which uses svn as its repository and I do not have previlege to commit source back to the svn. And I encounter a problem.
>
> Previously I alway use command `svn diff > /tmp/jira_number.patch` to create patch. There is no problem if I just modify existing source code. Now due to I create several java source files which previously did not exist in the svn repository, using `svn diff > /tmp/jira_number.patch` won't create patch that contains newly created source files. For instance, in svn there contained files
>
> messaging
> + messagedriven + a.java/ b.java
>
> Now I add new files
>
> messaging
> + messagdriven + a.java/ b.java/ c.java
> + d.java
> + e.java
>
>
> Files like d.java, e.java and c.java won't be included in the jira_number.patch file if executing `svn diff > /tmp/jira_number.patch`. And I can't commit source so I can't do e.g. `svn add` to add source back to the repository.
>
> What is the better way (best practice) to create patch so the developers would be easier to apply or test patch?

Either "svn add" the files first (that way they get included in the patch) or send the complete new files separately. Ask the project which way they prefer.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2425008

Please start new threads on the <users_at_subversion.apache.org> mailing list.
To subscribe to the new list, send an empty e-mail to <users-subscribe_at_subversion.apache.org>.
Received on 2009-11-28 03:09:35 CET

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

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