This Question is Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
9 Replies Last post: May 31, 2007 5:22 PM by Dmitry Jemerov  
Johan Lund Newbie 55 posts since
Jul 24, 2006
Currently Being Moderated

Apr 23, 2007 5:13 PM

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"?

Guest
Currently Being Moderated
Apr 23, 2007 5:15 PM in response to: Johan Lund
Re: Create Patch

Hello Johan,

 

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"?

 

http://en.wikipedia.org/wiki/Patch_%28Unix%29

 

--

Dmitry Jemerov

Software Developer

JetBrains, Inc.

http://www.jetbrains.com/

"Develop with Pleasure!"

 

 

 

Guest
Currently Being Moderated
Apr 23, 2007 6:19 PM in response to: Johan Lund
Re: Create Patch

Hello Johan,

 

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?

 

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!"

 

 

 

Simon Knott Novice 412 posts since
Sep 9, 2002
Currently Being Moderated
Apr 23, 2007 6:29 PM in response to: Johan Lund
Re: Create Patch

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...

Guest
Currently Being Moderated
Apr 23, 2007 6:55 PM in response to: Simon Knott
Re: Create Patch

Hello Simon,

 

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...

 

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!"

 

 

 

Simon Knott Novice 412 posts since
Sep 9, 2002
Currently Being Moderated
Apr 23, 2007 7:17 PM in response to: Guest
Re: Create Patch

I've just created IDEA-12487

steven Newbie 5 posts since
May 31, 2007
Currently Being Moderated
May 31, 2007 4:51 PM in response to: Johan Lund
Re: Create Patch

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  !!

Guest
Currently Being Moderated
May 31, 2007 5:22 PM in response to: steven
Re: Create Patch

Hello steven,

 

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  !!

 

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!"

 

 

 

More Like This

  • Retrieving data ...