Howto apply a patch/diff file

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

User avatar
Ben1338
Traffic Manager
Traffic Manager
Posts: 173
Joined: 17 Nov 2007 17:23
Skype: ben313371

Re: Howto apply a patch/diff file

Post by Ben1338 »

What's a HD? What about the desktop?
User avatar
athanasios
Tycoon
Tycoon
Posts: 3138
Joined: 23 Jun 2005 00:09
Contact:

Re: Howto apply a patch/diff file

Post by athanasios »

?( . . .
-"Harley Davidson?"
Attachments
HD.png
HD.png (52.63 KiB) Viewed 2204 times
http://members.fortunecity.com/gamesart
"If no one is a fool I am also a fool." -The TTD maniac.


I prefer to be contacted through PMs. Thanks.
User avatar
Ben1338
Traffic Manager
Traffic Manager
Posts: 173
Joined: 17 Nov 2007 17:23
Skype: ben313371

Re: Howto apply a patch/diff file

Post by Ben1338 »

thanks for the original reply.

And thanks to the rest of the people who helped me.
Firestar
Engineer
Engineer
Posts: 60
Joined: 24 Aug 2006 12:14

Re: Howto apply a patch/diff file

Post by Firestar »

I don't know if this is the correct place to be asking this, but have being trying to apply a patch, now as buildottd does not work anymore, but it does install mingw32, I have compliled with it, for a number of days, but when i try to patch I get this.
sh: /bin/patch: Permission denied
I'm using vista, and tryed running patch with admin access, any idea on how to fix this problem

Thanks
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Re: Howto apply a patch/diff file

Post by DaleStan »

Code: Select all

$ ls -l /bin/patch*
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
User avatar
Hamilton2007
Transport Coordinator
Transport Coordinator
Posts: 289
Joined: 16 Nov 2008 10:57
Location: Belgium

Re: Howto apply a patch/diff file

Post by Hamilton2007 »

I think i can handle the patching stuff now. Only are all of the patching files in red. I'm trying the map-1M-13664-fixed patch.
User avatar
Hamilton2007
Transport Coordinator
Transport Coordinator
Posts: 289
Joined: 16 Nov 2008 10:57
Location: Belgium

Re: Howto apply a patch/diff file

Post by Hamilton2007 »

Why are their note of exclamations in my SVN map ?

Lang, genworld_gui, train_cmd, map and map_type have all a red note of exclamation, all the rest is green???

If i try update SVN, they stay in red.
Alberth
OpenTTD Developer
OpenTTD Developer
Posts: 4765
Joined: 09 Sep 2007 05:03
Location: home

Re: Howto apply a patch/diff file

Post by Alberth »

Hamilton2007 wrote:Why are their note of exclamations in my SVN map ?

Lang, genworld_gui, train_cmd, map and map_type have all a red note of exclamation, all the rest is green???

If i try update SVN, they stay in red.
No idea what you are using, but a wild guess:

You are trying to merge a recent trunk (in the order of revision 16xxx) with an old patch of revision 13xxx, and you have merge conflicts (what is the state of the 'red' files?) since a lot happens in 3000 changes.

To resolve the conflicts, you'll have to investigate, and decide how the change should be merged. Once that is done, denote to svn that you have resolved the conflict.
The olny other alternative is to revert the patch.
User avatar
Hamilton2007
Transport Coordinator
Transport Coordinator
Posts: 289
Joined: 16 Nov 2008 10:57
Location: Belgium

Re: Howto apply a patch/diff file

Post by Hamilton2007 »

Ok i revert the SVN map now and they are all green now.
User avatar
Hamilton2007
Transport Coordinator
Transport Coordinator
Posts: 289
Joined: 16 Nov 2008 10:57
Location: Belgium

Re: Howto apply a patch/diff file

Post by Hamilton2007 »

If i right click SVN map and choose applay patch, then choose my patch, then i get the merge window but some of the patch files are in red, what does this mean?

example i'm trying the map-1M-13664-fixed patch.

settings.cpp
english.txt
train_cmd.cpp
openttd.cpp are all red.

genworld_gui.cpp
saveload.cpp
map_type.h
map.cpp are all black
Alberth
OpenTTD Developer
OpenTTD Developer
Posts: 4765
Joined: 09 Sep 2007 05:03
Location: home

Re: Howto apply a patch/diff file

Post by Alberth »

Repeating your question does not work.

Try reading the manual of your SVN program (there are many, and not every body uses the same one).
User avatar
Hamilton2007
Transport Coordinator
Transport Coordinator
Posts: 289
Joined: 16 Nov 2008 10:57
Location: Belgium

Re: Howto apply a patch/diff file

Post by Hamilton2007 »

I'm using TortoiseSVN and theire is no manuel in it.
User avatar
Thief^
Route Supervisor
Route Supervisor
Posts: 469
Joined: 10 Oct 2004 00:11

Re: Howto apply a patch/diff file

Post by Thief^ »

Really?

I think, the red entries in the merge files list mean that the trunk version of that file has changed since the patch was made. It's not a problem unless it gives you errors about conflicts when you try to merge.

The red icons on files after patching mean that you have changes to those files compared to trunk. If you've just applied a patch, you want that. What you don't want is yellow "warning sign"-type triangles, which indicate a problem.
Last edited by Thief^ on 30 Nov 2008 14:20, edited 1 time in total.
Melt with the Shadows,
Embrace your destiny...
Rubidium
OpenTTD Developer
OpenTTD Developer
Posts: 3815
Joined: 09 Feb 2006 19:15

Re: Howto apply a patch/diff file

Post by Rubidium »

The developers of TortoiseSVN[0] seem to disagree with you: [quote=TortoiseSVN]If you have TortoiseSVN installed, you can simply press the F1 key in any dialog to start up the help.[/quote]

[0] http://tortoisesvn.net/support <- also contains PDF versions of the manual (in several languages)
User avatar
Thief^
Route Supervisor
Route Supervisor
Posts: 469
Joined: 10 Oct 2004 00:11

Re: Howto apply a patch/diff file

Post by Thief^ »

Beat you to it Rubi!
Melt with the Shadows,
Embrace your destiny...
User avatar
Hamilton2007
Transport Coordinator
Transport Coordinator
Posts: 289
Joined: 16 Nov 2008 10:57
Location: Belgium

Re: Howto apply a patch/diff file

Post by Hamilton2007 »

Yeah found it :)

But it isn't really simple in my opinion
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Re: Howto apply a patch/diff file

Post by DaleStan »

Indeed. Many people have problems with reading. But please don't foist those problems on us. Find your friendly local reading teacher, and ask him or her in person.
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
User avatar
Hamilton2007
Transport Coordinator
Transport Coordinator
Posts: 289
Joined: 16 Nov 2008 10:57
Location: Belgium

Re: Howto apply a patch/diff file

Post by Hamilton2007 »

I'm just asking right :roll:

I'm asking here because here are the pro's with experience on the program.

But i gave up, the translation from the program to dutch is really bad in my opinion.
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Re: Howto apply a patch/diff file

Post by DaleStan »

"Professional" means "I get paid to do this".

I do not get paid to do this, ergo I am not a professional. As far as I know, everyone else on these forums is in the same boat. You are welcome to arrange a change in that status.

And the apo'strophe doe's not mean "Look out! Here come's an 'S'!"
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
orcaz
Engineer
Engineer
Posts: 97
Joined: 13 May 2006 19:45
Location: Kobe, japan

Re: Howto apply a patch/diff file

Post by orcaz »

I get this error (using cygwin)
Attachments
screenshot.PNG
screenshot.PNG (27.45 KiB) Viewed 1758 times
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 15 guests