Patch Contents Differ from output of svn diff

Hello. The short version of my question is:

How can I get Idea to use svn to generate a patch?

Detail:

I am using Idea to collaborate on an open source project in which patch files need to have an "Index" line and a separator "==" line for each file in the patch.

Here is the beginning of the output of svn diff:

Index: pom.xml
===================================================================
--- pom.xml (revision 578187)
+++ pom.xml (working copy)

... and here is the beginning of the output of Idea's patch:

--- pom.xml (revision 578187)
+++ pom.xml Sun Sep 23 13:24:43 EDT 2007

As you can see, the Idea patch lacks the "Index" and "===" lines, and has a date rather than "working copy".

How can I get Idea to use svn to generate the patch?

As an aside question, when I ask Idea to get the changes I've made relative to the same revision, it seems like it's accessing the server. Why does it do that? Subversion keeps a pristing copy locally, so it shouldn't need to, right?

Thanks for any help.

- Keith

1 comment
Comment actions Permalink

Hello Keith,

Hello. The short version of my question is:

How can I get Idea to use svn to generate a patch?


Short version of the answer: you can't.

Detail:

I am using Idea to collaborate on an open source project in which
patch files need to have an "Index" line and a separator "==" line for
each file in the patch.


There's an issue for that which will be fixed in Selena final:
http://www.jetbrains.net/jira/browse/IDEADEV-15970

How can I get Idea to use svn to generate the patch?


The patch functionality in IDEA is not tied to any particular VCS and is
available even when your project doesn't have a VCS at all (you can create
patches from the changes stored in local history). Because of this, it doesn't
make sense to delegate to a particular VCS for such common functionality.

As an aside question, when I ask Idea to get the changes I've made
relative to the same revision, it seems like it's accessing the
server. Why does it do that? Subversion keeps a pristing copy
locally, so it shouldn't need to, right?


Indeed, this is a minor regression. Could you please file a JIRA issue for
this?

--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Please sign in to leave a comment.