Jump to content
  • 0

Updating SVN


Cephaler

Question


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  132
  • Reputation:   2
  • Joined:  02/02/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  103
  • Reputation:   28
  • Joined:  09/20/12
  • Last Seen:  

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?
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Forum Manager
  • Topic Count:  282
  • Topics Per Day:  0.06
  • Content Count:  3123
  • Reputation:   1617
  • Joined:  03/26/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

Many users afraid their data will be overwritten during the 'SVN Update' process.. A patch may be a good temporary solution for this

Link to comment
Share on other sites


  • Group:  Forum Manager
  • Topic Count:  282
  • Topics Per Day:  0.06
  • Content Count:  3123
  • Reputation:   1617
  • Joined:  03/26/12
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  132
  • Reputation:   2
  • Joined:  02/02/12
  • Last Seen:  

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 by Cephaler
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  782
  • Reputation:   82
  • Joined:  01/01/12
  • Last Seen:  

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 by darristan
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  132
  • Reputation:   2
  • Joined:  02/02/12
  • Last Seen:  

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!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...