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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T18:26:56+00:00 2026-05-10T18:26:56+00:00

I have a somewhat complicated branching structure at work (at least for me). It

  • 0

I have a somewhat complicated branching structure at work (at least for me). It is something like this:

 Main  |  1  |  2  | \  3   \      Ver2       |       1       | \       2   \        |   ProjectA       3      |              1 

There are 2 branches off of main. ‘Ver2’ which has everyone’s changes for the next version, and ‘ProjectA’ which is my work.

My question is: Is there a way to create a config spec that knows what has been merged so I get:

  1. Anything from ProjectA that has not been merged
  2. If the LATEST from ProjectA has been merged to Ver2, then get the LATEST from Ver2 branch
  3. If there is not a ProjectA branch, get from Ver2
  4. If there is no Ver2, get from MAIN

For example, in the above case, if I merged version 1 from ProjectA to version 2 in Ver2 branch, then I would want to see version 3 on Ver2. However, if I have not yet merged those files, I would want version 1 from ProjectA in my view.

  • 1 1 Answer
  • 2 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-10T18:26:56+00:00Added an answer on May 10, 2026 at 6:26 pm

    You have to remember why you define a branch:
    To isolate a development effort.

    So to better manage your complex config spec, you should know precisely what role play the ‘main’ branch, v2 branch and project A branch.

    V2 and project A, for instance, should be there for two different reasons.

    If Project A is there to develop the current version of the project, merges to V2 branch should occur to allow for retrofitting some of the current developments to the V2 branch.

    By that reasoning, you should not want to see ‘both’ in a same view: they represent two different set of files, V2 could include large refactorings with very different API.

    However, should you insist on such a configuration, you could use the ability of moving a ‘MERGE_FROM_PA’ label: each time you merge some files from Project A to V2 branch, you set again the ‘MERGE_FROM_PA’ label for each merged file/directory, moving that label from previous V2 versions to their latest.

    The config spec could be:

    element * MERGE_FROM_PA element * .../ProjectA/LATEST element * .../V2/LATEST element * /main/LATEST 

    But then again, that would not make much sense.

    You need to define the different development efforts you want to modelize, and then define a coherent workflow, allowing your config spec to focus only on one of those environments.

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

Sidebar

Related Questions

This is somewhat complicated to explain, so please bear with me. I have an
I have a somewhat complicated question related to MySQL. This is the table I
I have a list of items that is somewhat like this: [ [orange, 9],
Setting up a project structure; I am thinking is it better to have somewhat
I have a method somewhat similar to the one written bellow(this is just a
Ok SQL and Oracle gurus I have a somewhat complicated query that I'm trying
This problem is somewhat complicated and I'm in a little over my head. I
I have a somewhat complicated assortment of tables for which I need to do
OK, I have a somewhat complicated system in C++. In a nutshell, I need
I'm creating a System-Tray only application. It's somewhat complicated to have the icon without

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.