Cephaler Posted September 27, 2012 Group: Members Topic Count: 17 Topics Per Day: 0.00 Content Count: 132 Reputation: 2 Joined: 02/02/12 Last Seen: May 25, 2019 Share Posted September 27, 2012 Hello guys, first, thanks for the amazing job you guys have been doing. Second: I use rathena for my server and I see everyday there's a bug fix/svn update sometimes more than one per day. Question is: I have made changes to src/some files in other to customize my server, added things, scripts etc. 1; How do I update the SVN without overwriting/deleting the customization I've made? Thanks! Quote Link to comment Share on other sites More sharing options...
Mystery Posted September 27, 2012 Group: Members Topic Count: 94 Topics Per Day: 0.02 Content Count: 2192 Reputation: 253 Joined: 11/11/11 Last Seen: June 24, 2020 Share Posted September 27, 2012 Hello guys, first, thanks for the amazing job you guys have been doing. Second: I use rathena for my server and I see everyday there's a bug fix/svn update sometimes more than one per day. Question is: I have made changes to src/some files in other to customize my server, added things, scripts etc. 1; How do I update the SVN without overwriting/deleting the customization I've made? Thanks! Taken from the IRC: <Flaid>: you have to merge it in manually <Flaid>: if you have custom edits <Flaid>: on that files <Flaid>: D: <Cephaler>: ouch ;-( <Flaid>: else make patch/diff files of your custom edits, update your rA svn and patch in your edits <Cephaler>: or just don't update rathena <Cephaler>: ._. <Cephaler>: lol <Flaid>: or that <Flaid>: do what i do and just merge in updates you need Basically you want a working copy of your server on your desktop and just update the folder with TortoiseSVN and the files that get updated/merged, transfer them over to your VPS. Also, depending on what you use.. you can search the forums. Linux Wiki Quote Link to comment Share on other sites More sharing options...
Spre Posted September 27, 2012 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 103 Reputation: 28 Joined: 09/20/12 Last Seen: January 14, 2019 Share Posted September 27, 2012 I recommend NOT running the server directory from your svn directory, then you do not have to worry about it, just update your svn, make all your custom edits, compile, copy over. 1; How do I update the SVN without overwriting/deleting the customization I've made? 1 Quote Link to comment Share on other sites More sharing options...
Akkarin Posted September 27, 2012 Group: Forum Manager Topic Count: 282 Topics Per Day: 0.06 Content Count: 3144 Reputation: 1630 Joined: 03/26/12 Last Seen: April 15 Share Posted September 27, 2012 Have you all gone crazy? o.O Subversion is designed to merge working directory with new content - it takes into account that the user may have modified data and carries out the updates/merges accordingly o_o Quote Link to comment Share on other sites More sharing options...
nanakiwurtz Posted September 27, 2012 Group: Members Topic Count: 81 Topics Per Day: 0.02 Content Count: 1654 Reputation: 583 Joined: 08/09/12 Last Seen: January 14, 2020 Share Posted September 27, 2012 Many users afraid their data will be overwritten during the 'SVN Update' process.. A patch may be a good temporary solution for this Quote Link to comment Share on other sites More sharing options...
Akkarin Posted September 28, 2012 Group: Forum Manager Topic Count: 282 Topics Per Day: 0.06 Content Count: 3144 Reputation: 1630 Joined: 03/26/12 Last Seen: April 15 Share Posted September 28, 2012 The svn update function doesn't overwrite anything. If it detects a conflict, the program tells you about it then adds >>>>>>>>, =========== and <<<<<<<< to the files for you deal with. If using windows, tortoisesvn has a function to deal with conflicts. Linux prompts you, usually you would hit "e" on your keyboard to edit the file, then save-exit, then hit "r" to mark it as resolved and it'll carry on with the update. There's no need to over-complicate a process that's been simple to do for years. Quote Link to comment Share on other sites More sharing options...
Cephaler Posted September 30, 2012 Group: Members Topic Count: 17 Topics Per Day: 0.00 Content Count: 132 Reputation: 2 Joined: 02/02/12 Last Seen: May 25, 2019 Author Share Posted September 30, 2012 (edited) Have you all gone crazy? o.O Subversion is designed to merge working directory with new content - it takes into account that the user may have modified data and carries out the updates/merges accordingly o_o Wait I don't understand.. so if I right click on the folder and click on SVN update it won't delete my changes? even if I have changes on the same file that got updated? Edited September 30, 2012 by Cephaler Quote Link to comment Share on other sites More sharing options...
Bin4ry Posted September 30, 2012 Group: Members Topic Count: 30 Topics Per Day: 0.01 Content Count: 782 Reputation: 82 Joined: 01/01/12 Last Seen: September 21, 2015 Share Posted September 30, 2012 (edited) Yes. It will merge your changes and the update changes instead. Like Akkarin mention, if it detect conflict in ur update and current svn diff, TortoiseSVN will tell you. Edited September 30, 2012 by darristan Quote Link to comment Share on other sites More sharing options...
Cephaler Posted September 30, 2012 Group: Members Topic Count: 17 Topics Per Day: 0.00 Content Count: 132 Reputation: 2 Joined: 02/02/12 Last Seen: May 25, 2019 Author Share Posted September 30, 2012 Yes. It will merge your changes and the update changes instead. Like Akkarin mention, if it detect conflict in ur update and current svn diff, TortoiseSVN will tell you. Thank you! That saves a lot of time! Quote Link to comment Share on other sites More sharing options...
Question
Cephaler
Hello guys, first, thanks for the amazing job you guys have been doing.
Second:
I use rathena for my server and I see everyday there's a bug fix/svn update sometimes more than one per day.
Question is:
I have made changes to src/some files in other to customize my server, added things, scripts etc.
1; How do I update the SVN without overwriting/deleting the customization I've made?
Thanks!
Link to comment
Share on other sites
8 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.