Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 997631
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T07:03:56+00:00 2026-05-16T07:03:56+00:00

I have a fairly complex WordPress + bbPress installation and I would like to

  • 0

I have a fairly complex WordPress + bbPress installation and I would like to handle version control for all the custom code in subversion. What follows is the approach I have settled on and I would appreciate input/critique. Is there a better way to do this?

Although my situation involves WordPress I am describing things in general terms and the problem applies to any number of other frameworks where you end up with large amounts of custom code spread around a larger system.

The hierarchy of the deployed site (below html root) looks as follows (somewhat simplified for illustration):

CUSTOM-directory
wp-admin
wp-content
  - <other directories>
  - themes
    - <CUSTOM theme directories>
    - <other theme directories>
  - plugins
    - <CUSTOM plugin files & directories>
    - <other plugin files & directories>
wp-includes
<other files>

I want to put all the directories that contain “CUSTOM” under version control. So I set up a hierarchy as follows and imported it into a new repo.

website
  - trunk
    - CUSTOM-directory
    - themes
    - plugins
  - branches
  - tags

Since “themes” and “plugins” in the deployed hierarchy contain files and folders in addition to my custom code, I added this other stuff to the ignore property of these two directories.

I am making changes in three places: a dev machine (where most of the action takes place), a staging/testing server that is almost identical to my production environment, and the production server (only minor changes). The initial setup in these three places is a little time consuming because I have to check out each directory below trunk into its correct place in the hierarchy. But that is a one-time hassle.

I wrote a few simple shell scripts to automate svn tasks once this is all set up. For example: svn-commit.sh (which would run from the root of the WordPress installation)

#!/bin/sh
svn commit CUSTOM-directory "$@"
svn commit wp-content/plugins "$@"
svn commit wp-content/themes "$@"

I have also checked out a separate working copy on my dev machine that is purely my custom code so that I can do drag and drop repo maintenance using Versions.

So, what do you think? Is there an easier way? I also considered:

  1. Putting the whole mess under version control. I thought would create too much repo admin overhead as I dealt with other people refactoring their code.

  2. Putting the whole hierarchy under version control and setting ignore for everything but my code. Again, this would involve too much ongoing admin overhead maintaining the ignore properties.

Finally, are there any security issues around having .svn folders hanging around in my production site?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T07:03:56+00:00Added an answer on May 16, 2026 at 7:03 am

    I like your approach. You only get under version control things which are going to change like plugins and themes and your custom directory. I think putting everything under version control would be unnecessary, since you would have to deal with WordPress changes too.

    I don’t know how your development environment is set up, but you could set a project with WordPress/bbPress and checkout your code into the project’s folders, ignoring the rest of the folders. But the way you did it, I think it’s just fine, not much overhead.

    BTW, using svn export, you get all the files from the repo, without the .svn directories. You should use this commando for your production site. Or do a checkout, and prevent access to .svn directories in your web server.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a fat GUI that it getting fairly complex, and I would like
I have some fairly complex routing rules, that are only achievable with custom code,
I have a fairly complex LINQ to Entities query I'd like to try compiling
I have a fairly complex query where I am filtering results with a LIKE
I have a fairly complex object which has some C# code written to render
I have a fairly complex user drawn control that is double buffered. Works very
I have a fairly complex query that looks something like this: create table Items(SomeOtherTableID
I have a fairly complex query with tons of joins all over the place.
I have a fairly complex project in the works that requires a custom volume
I have a fairly complex model for one of my pages; it's made of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.