The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
using git / svn and dealing with version no
Heya!
we are (still) using svn to manage our vbulletin instance. So far so good and all works well, but the main pain in the a•• is the upgrading process! SVN marks _all_ new files as conflicted, just because they have a different version number PHP Code:
We are planning on moving to git; but as far as I can see, the problem is still the same. I just don't want to go through all files and clear the conflicts. NB: some "core" files have been modified by us, I do know which ones, but the whole point of a versioning system is to know have to deal with those Or am I doing the update process wrong then you or what is best practice? Best |
#2
|
|||
|
|||
Well since there's no way (as far as I know) to ignore comments in SVN/git commits, your only option would be to use something like WinMerge and compare the old and new folder. In WinMerge you can create a filter to ignore all comments when it checks for differences. I've done this before and it's quite easy.
http://stackoverflow.com/questions/3...gnore-comments |
#3
|
||||
|
||||
Quote:
|
#4
|
|||
|
|||
Quote:
There is a possibility to ignore some lines in git, but before I use this method, I thought I just ask http://stackoverflow.com/questions/1...cific-lines-of Quote:
|
#5
|
||||
|
||||
You need to setup two git repositories, though in theory it should work with 2 branches in the same repository. One repository/branch is solely for committing changes to vBulletin (i.e. upgrades) the other repository/branch is where your customizations are committed. When you apply an upgrade to the first repository/branch you then fetch it to the second and apply a git rebase to have your customization applied to the new "base" code.
I finished the article and have submitted it for approval with staff. --------------- Added [DATE]1453494919[/DATE] at [TIME]1453494919[/TIME] --------------- If you wanted to continue using svn you could do a similar thing where the vbulletin commits are on the trunk line and your changes are on a branch. Every time you commit a new vbulletin version to the trunk do an svn merge to your branch to upgrade you customizations to the new versions of svn. |
#6
|
|||
|
|||
Awesome!!
Thank you!! I will wait for the article and hopefully things will clear up |
#7
|
||||
|
||||
It was approved yesterday and isinthe vb tips and tricks section of the articles area.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|