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

  • Home
  • SEARCH
  • 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 139935
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T07:31:27+00:00 2026-05-11T07:31:27+00:00

To start out, I have looked at the following pages and don’t quite have

  • 0

To start out, I have looked at the following pages and don’t quite have my answer: how-would-you-organize-a-subversion-repository-for-in-house-software-projects and how-do-you-organize-your-version-control-repository

I have also looked at chapter 8 of Pragmatic Version Control using Subversion.

They all have good advice, but I’m having a hard time relating it to my needs.

Basically, I want to organize the code for our web server. We have a $WEBROOT/htdocs and $WEBROOT/cgi-bin. Under our htdocs dir we have $WEBROOT/htdocs/js and $WEBROOT/htdocs/css for java script and style sheets.

Our ‘projects’ are not really projects, but small bits of code – maybe a Perl script, java script file, and a style sheet. We have maybe a hundred or so of these small ‘projects’ that are all pretty much independent of each other, but all live under the same $WEBROOT on the same webserver.

Our code is not in subversion yet, but I want it to be – I am just having trouble organizing it efficiently. We can have multiple svn repositories if needed, but if each repository was only 3-10 elements, that seems like a waste to me.

What I thought could work is something like this: If I write a script to count the running processes on the webserver (for the sake of an example). Let’s say I have a perl script, a js file, and a css file. I could name the ‘project’ webserver_processes, and check it into the repository as:

/svnrepo/webserver_processes/trunk 

Under trunk, I could have:

htdocs/html/webserver_processes htdocs/js/webserver_processes htdocs/css/webserver_processes cgi-bin/webserver_processes 

I don’t have any static html docs in this ‘project’ but if i did, they would go in the ‘html’ directory.

The benefit I see in this structure is that I can checkout one ‘project’ at a time without really affecting anything else on the web server. The disadvantage (and maybe it isn’t really a disadvantage) is deploying. I would have to deploy 1 project at a time from the repository. I don’t see how it would be possible to create a working copy with my structure of $WEBROOT/htdocs and $WEBROOT/cgi-bin using this method.

Another option:

I could create a svn repository like this:

/svnrepo/webcode/trunk 

Under trunk would be all of the code on my web server, in these two directories:

htdocs cgi-bin 

The huge disadvantage would be, for a small code change to 1 element, I would have to checkout every piece of code in my web environment. The benefit (somewhat) would be I could do an ‘svn update’ on our web server to pick up any changes committed to the repository.

Maybe I am just making this more complex than it should be, but does anyone have any advice on how I could efficiently organize my code in subversion?

Many thanks in advance!

Brian

  • 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. 2026-05-11T07:31:28+00:00Added an answer on May 11, 2026 at 7:31 am

    I think you’re making the right call by keeping a single repository for your many projects, so I would only make a change to your deployment process:

    Your svn repo would look like (your first option.)

    /svnrepo/project1/trunk /svnrepo/project1/trunk/htdocs /svnrepo/project1/trunk/css ... /svnrepo/project1/branches/branch1 /svnrepo/project1/tags/blah /svnrepo/project2/trunk /svnrepo/project3/trunk 

    When you want to deploy use a script to copy the file(s) to where they ought to be deployed.

    This way, you’re keeping an artificial barrier (a folder) up to organize your thoughts between projects rather than having just a big mess of files.

    edit:accidentally saved & additional directories added for clarity

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

Sidebar

Ask A Question

Stats

  • Questions 58k
  • Answers 58k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer it's the OOP way to do closures on languages that… May 11, 2026 at 8:45 am
  • added an answer The reason why differentials aren't working is because SharePoint cannot… May 11, 2026 at 8:45 am
  • added an answer I'm doing something that is very similar. But I'm using… May 11, 2026 at 8:45 am

Top Members

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

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.