Create Patch
I noticed a button saying "Create Patch" when committing a file using subversion.
I did not find any info on this in the manual. There is a screenshot of the commit window in the manual but on the screenshot it says "Remote run".
What is this "Create Patch"?
Please sign in to leave a comment.
Hello Johan,
http://en.wikipedia.org/wiki/Patch_%28Unix%29
--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Aha, thats nice. So I can use this to apply changes to several different branches.
Is there a way to create patches from somewhere else but the commit dialog?
For example; Sometime ago a change was made to branch_1 that should have been checked in on branch_2 also. But it wasn't. Several changes has been made since then.
What can I do besides manually copying the changes into the other branch?
Hello Johan,
In the build 6913, "Create Patch" can also be invoked from the Committed
Changes tab in Changes view (which is also accessible through Browse Changes
action).
--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
If you use the commited tab of the changes window, you can find the commit revision in question and create a patch based off the revision. Or at least that's the idea :) It went in in the last build and it doesn't appear to work here, it just throws the error:
Error creating patch: null
No exception is thrown, so I'm not sure what's going on. I haven't got around to raising it in JIRA yet though...
Hello Simon,
What VCS are you using? Are there any exceptions in idea.log?
--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
I have the same problem. Cannot create patch.
Here is the error message from idea.log:
2007-04-23 17:10:35,819 INFO - atch.CreatePatchCommitExecutor -
java.lang.NullPointerException
at com.intellij.openapi.diff.impl.patch.PatchBuilder.a(PatchBuilder.java:64)
at com.intellij.openapi.diff.impl.patch.PatchBuilder.a(PatchBuilder.java:103)
at com.intellij.openapi.diff.impl.patch.PatchBuilder.buildPatch(PatchBuilder.java:112)
at com.intellij.openapi.vcs.changes.patch.CreatePatchCommitExecutor$CreatePatchCommitSession.execute(CreatePatchCommitExecutor.java:33)
at com.intellij.openapi.vcs.changes.actions.CreatePatchFromChangesAction.actionPerformed(CreatePatchFromChangesAction.java:23)
at com.intellij.openapi.actionSystem.impl.ActionButton.a(ActionButton.java:122)
at com.intellij.openapi.actionSystem.impl.ActionButton.performAction(ActionButton.java:105)
at com.intellij.openapi.actionSystem.impl.ActionButton.processMouseEvent(ActionButton.java:47)
at java.awt.Component.processEvent(Component.java:5266)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3968)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1778)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:144)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:139)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:89)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
2007-04-23 17:10:45,881 INFO - lij.localVcs.impl.LocalVcsImpl - purged 0 items
I've just created IDEA-12487
Hi,
i'm trying to appply a patch to a file but i got this error:
failed to apply patch for file .. :couldn't find context !!
Hello steven,
This usually means that the base version of the file used to create the patch
is completely different from the version of the file you have locally.
--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"