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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T00:36:01+00:00 2026-05-19T00:36:01+00:00

I’m considering switching from HG to Plastic SCM ( http://www.plasticscm.com , mainly because it

  • 0

I’m considering switching from HG to Plastic SCM (http://www.plasticscm.com, mainly because it seems to offer much nicer VS integration), and they promote “task driven branching”, that is, branching from mainline for every feature. This makes sense, but, I had a few questions:

  1. They recommend not merging your tasks back to mainline after they’re completed. This seems very non-intuitive, I’d have thought that one would, after testing, want to immediately merge back to tip so that you don’t have to rebase later on. Not to mention, if tasks aren’t merged back, and say a new release is coming up, one needs to merge in possibly hundreds of different branches, and make sure they all play nice with each other in a short period of time (testing in independence doesn’t mean they’ll play nice with others, imho). So, this seems like it’s bound to fail, am I wrong? Do you practice this method?
  2. Let’s say I’m wrong about the above, given the following scenario: Task A, B, C. Where B, C are dependent on A being completed, would it be better to complete A, merge it back to the mainline, and then branch from there to work on B/C, or, sub-branch your initial branch(the branch you created for A). Is that even possible? Recommended? It seems slightly cleaner in my head, if the same person is implementing A, B, C. If not, obviously, merge back to mainline makes the most sense.

Let me know what you guys think!

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-19T00:36:01+00:00Added an answer on May 19, 2026 at 12:36 am

    In a rather good discussion about branch strategies we had recently, jgifford25’s answer contained a link to what one of Subversion’s developers calls the ‘agile release strategy‘, and which looks rather similar to what the Plastic guys are suggesting – a branch per feature, with merges into release branches rather than into the trunk. I didn’t think that was a good idea, and i don’t think this is a good idea. I also don’t think it’s a coincidence that in both cases, the idea is being pushed by a SCM developer – i think those guys have a case of “everything looks like a nail”, and think any process problem can be fixed with more and bigger SCM.

    So why is this idea bad? Let’s follow the Plastic guys’ argument. They build this process around one central idea: ‘keep the mainline pristine’. So far so good. They then advance a syllogism that looks like:

    1. If you check broken code into the trunk, the build breaks
    2. Broken builds are bad
    3. Therefore don’t check code into the trunk

    The problem with this is that it completely misunderstands why broken builds are bad. Broken builds are not bad in and of themselves (although they are unhelpful, because they stall development), they are bad because they mean that someone has checked in broken code. It’s broken code that’s the real problem, not broken builds – it’s the broken code which actually has the potential to cause damage (lost user data, lost space probes, global thermonuclear war, that sort of thing).

    Their solution, then, amounts to having people check their broken code in elsewhere, so that it doesn’t break the build. This pretty obviously does nothing at all to deal with the actual problem of broken code – quite the opposite, it’s a way of concealing broken code. Indeed, it’s not clear to me at which point the brokenness gets detected – when the task branches are finalised and merged to the release branch? That sounds like a great way of deferring difficult work to late in your release cycle, which is a very poor idea.

    The real solution, rather, is quite simply not check broken code in at all. In the pursuit of that goal, a broken build is actually good, because it tells you that there is broken code, which lets you fix it. That, in fact, is the whole flipping point of the idea of continuous integration – your merge early and often into a single trunk which is the prototype of what will actually get released, so you detect problems with what you intend to release as early as possible. That absolutely requires the ‘unstable trunk’ model, or something isomorphic to it.

    The blog post that orangepips’s answer links to mentions Ubuntu’s idea about process as a driver for this idea. But look at what Shuttleworth actually said:

    • Keep trunk pristine
    • Keep features flowing
    • Release on demand

    That’s my emphasis on the last point, but it’s Shuttleworth’s end goal: he wants to be able to cut releases at any time. A process which defers merging and testing to the release process, as the Plastic model does, cannot possibly do this.

    Rather, if you want to see what a process which can do it looks like, look at what the lean guys do: one codeline, continuous integration (on a scale of hours or even minutes, rather than days or weeks), no broken code.

    So, in conclusion: don’t do this. Have one codeline, and check working code into it as often as you can. Simple.

    PS Okay, so you might want to make release branches to stabilise and bugfix actual releases. Ideally, you wouldn’t, but you might need to.

    PPS And if you have a CI test suite that is too slow to run before checking in (eg functional tests which take an hour), then something you could do with any DVCS is have two repositories: a dirty one, where developers merge into, and a clean one, which is pushed to by a script which watches the dirty repository for changes, builds and tests new versions coming into it, and pushes to the clean repository if they pass. You can then run on-demand releases (for QA and so on) from the clean repository, and developers can update from the clean repository to stay current while developing. They will obviously have to update from the dirty repository immediately before merging, though.

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

Sidebar

Related Questions

I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
link Im having trouble converting the html entites into html characters, (&# 8217;) i
Does anyone know how can I replace this 2 symbol below from the string
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have a bunch of posts stored in text files formatted in yaml/textile (from
I have a text area in my form which accepts all possible characters from
Seemingly simple, but I cannot find anything relevant on the web. What is the
this is what i have right now Drawing an RSS feed into the php,
I have just tried to save a simple *.rtf file with some websites and

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.