Project

General

Profile

patches for windows

Added by reham kh almost 10 years ago

Hello

I couldn't find any detailed explanation for applying patches for windows. All was for Linux

I would be thankful if I get any help regarding this :)


Replies (12)

RE: patches for windows - Added by Martin Denizet (redmine.org team member) almost 10 years ago

Hi Reham,
Linux rocks, in my opinion creating a Linux VM is great because it's easier/faster to manage in Linux. (My opinion, some people will disagree).
What do you mean by applying patches? Do you mean .patch files created with diff?
Take a look to TortoiseMerge available for download here

Cheers,

RE: patches for windows - Added by reham kh almost 10 years ago

I have some .diff files and I don't know how to get them worked.
shall I download TortoiseMerge for that?

RE: patches for windows - Added by Martin Denizet (redmine.org team member) almost 10 years ago

Yes, download/extract, then start TortoiseMerge and choose Apply unified diff
The directory you select should be relative to the directory in the first line of the patch / diff file.
Cheers!

RE: patches for windows - Added by reham kh almost 10 years ago

I've downloaded TortoiseMerge but after diff file and directory selction, nothing happened!

RE: patches for windows - Added by Martin Denizet (redmine.org team member) almost 10 years ago

Can you please upload the said patch file please?

RE: patches for windows - Added by Martin Denizet (redmine.org team member) almost 10 years ago

What's your Redmine version please?

RE: patches for windows - Added by reham kh almost 10 years ago

Redmine version: 2.3.1.stable

I didn't know how to apply patches :(

RE: patches for windows - Added by Martin Denizet (redmine.org team member) almost 10 years ago

Hey,

I checked #8488 and it seems you were using a patch too old for 2.3.1
I applied this version of the patch to the issue.rb model of 2.3.1
It seems that you are right, TortoiseMerge doesn't seem to work correctly startalone (without TortoiseSVN).
I cheated and used Linux:

patch < private_issue_watchers_2.2_FIXED_5.diff

There was some offsets but according to #8488 it should work. Note that I didn't try it!

Cheers,

issue.rb (51.4 KB) issue.rb

RE: patches for windows - Added by reham kh almost 10 years ago

thanks a lot but I don't know how to apply patches in windows

RE: patches for windows - Added by Martin Denizet (redmine.org team member) almost 10 years ago

I already applied for you the patch of the file attached earlier (issue.rb) so you just need to replace it in app/models.
As TortoiseMerge doesn't seem to work, you could try using Cygwin: http://stackoverflow.com/questions/15543046/how-to-use-diff-and-patch-in-cygwin-on-windows
Maybe there is simpler for example using TortoiseSVN, some Googling may be required.
Cheers!

RE: patches for windows - Added by reham kh almost 10 years ago

Yes I replaced (issue.rb) you gave me, but it didn't work!
anyways, thank you so much.

    (1-12/12)