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 809833
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T00:47:27+00:00 2026-05-15T00:47:27+00:00

For version control we currently use Visual Source Safe and are thinking of migrating

  • 0

For version control we currently use Visual Source Safe and are thinking of migrating to another version control system (SVN, Mercurial, Git).

Currently we use Visual Source Safe’s “Shared” file feature quite heavily. This allows us to share code between design and runtimes of a single product, and between multiple products as well.

For example:

**Product One**
  - Design
     Login.cpp
     Login.h
     Helper.cpp
     Helper.h
  - Runtime
     Login.cpp
     Login.h
     Helper.cpp
     Helper.h

**Product Two**
  - Design
     Login.cpp
     Login.h
  - Launcher
     Login.cpp
     Login.h
  - Runtime
     Login.cpp
     Login.h

In this example Login.cpp and Login.h contain common code that all of our projects need, Helper.cpp and Helper.h is only used in Product One. In Visual Source Safe they are shared between the specific projects, which means that whenever the files are updated in one project they are updated in any project they are shared with.

This is a simple example but hopefully it explains why we use the shared feature: to reduce the amount of duplicated code and ensure that when a bug is fixed all projects automatically have access to the new fixed code.

After researching alternatives to Visual Source Safe it seems that most version control systems do not have the idea of shared files, instead they seem to use the idea of sub repositories. ( https://www.mercurial-scm.org/wiki/subrepos http://svnbook.red-bean.com/en/1.0/ch07s03.html)

My question (after all of that) is about what the best practices for achieving this are using other version control systems?

  1. Should we restructure our projects so that two copies of the files do not exist and an include directory is used instead? e.g.

    Product One

    • Design
      Login.cpp
      Login.h
    • Runtime
      Login.cpp
      Login.h
    • Common
      Helper.cpp
      Helper.h

This still leaves what to do with Login.cpp and Logon.h

  1. Should the shared files be moved to their own repository and then compiled into a lib or dll? This would make bug fixing more time consuming as the lib projects would have to be edited and then rebuilt.

  2. Should we use externals or sub repositories?

  3. Should we combine our projects (i.e. runtime, design, and launcher) into one large project?

Any help would be appreciated. We have the feeling that our project design has evolved based on the tools that we used and now that we are thinking of switching tools it’s difficult for us to see how we can best modify our practices.

Or maybe we are the only people are there doing this…?

Also, we use Visual Studio for all of our stuff.

Thanks.

  • 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-15T00:47:28+00:00Added an answer on May 15, 2026 at 12:47 am

    I can only speak from SVN perspective, but it is pretty common to have the files used in multiple projects stored in a separate module (SVN has the concept of modules, I think that is what you mean when you are referring to sub repositories).

    The way I would do this is to have common code that is needed across more than one project checked in as a separate module. If you call this module Design and your other two products are checked into SVN as ProductOne and ProductTwo, then all you need is to check out the Design and ProductOne module, make ProductOne depend on Design for compilation.

    In Visual Studio, the workspace is called solution which can contain more than one project. So, you can have all three modules as projects and make the ProductOne project depend on Design project. It is as simple as that.

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

Sidebar

Ask A Question

Stats

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

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

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

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

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer The GC runs in your process and hence has the… May 15, 2026 at 10:18 am
  • Editorial Team
    Editorial Team added an answer Yes, here's one way to do it: def flatten(lst): for… May 15, 2026 at 10:18 am
  • Editorial Team
    Editorial Team added an answer Preference files are not storead in project's /res/xml/defaults.xml They are… May 15, 2026 at 10:18 am

Trending Tags

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

Top Members

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.