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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T08:51:18+00:00 2026-06-07T08:51:18+00:00

We recently decided to start using SCM software (yes we probably should have a

  • 0

We recently decided to start using SCM software (yes we probably should have a long time ago) and we’ve decided to try Mercurial. From what I can find it supposedly plays better w/ Windows than Git does. We’re also planning use TortoiseHG instead of the command line, as that’s what we’re more comfortable with. I’m still very early in my learning, and I have a question I keep finding conflicting answers on.

We have an apache-served PHP site. We plan on putting each developer’s working copy on a different port until a time in the future when we can properly virtualize the server (one per developer). We’d like to keep a branch/tag/something for the “stable” build while we continue new development. Of course whenever there is a bugfix, we want to push that immediately, but we also want to merge it into the dev branch.

I’ve heard from some that we should clone the repo, do our changes in the clone, then merge it back in when done.

I’ve also heard we should just use branches, and merge the branch back in when done.

In the repository case, what do you do about apache? It’d be a pain to have to reconfigure it to point to a different directory each time you added new functionality…

Thanks for any light you guys can shine on this. I appreciate the help!

How do we go about this?

[edit]
Also, what are “shelve” and “patch” in regards to HG? Double 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-06-07T08:51:20+00:00Added an answer on June 7, 2026 at 8:51 am

    In a distributed revision control system, there’s no central server, each “clone” has a copy of the whole repository. Changes are made in the local repo, and later changesets are pushed to other ones (or pulled from them). So, in practice every clone is a branch, and every “commit” is a merge.

    I’ll suggest an example of workflow below. For a more in-depth explanation of the things I wrote, please see this article (Edit: actually I meant this one, about Release Management, but the other one is useful too…) and this short Mercurial overview.

    Suppose you have a “main” repository, that will contain all the up-to-date info from all developers. You can clone it (once) and create a “production” repository. After that, update it to the latest stable revision (which should’ve been marked using a tag).

    You can also clone it again for each developer (reiterating: you only clone once), and have them work independently from each other. They can commit at will (since a commit only affects the local repository) and ideally should only push changesets to “main” when they’re stable. They can also pull changesets from other developers, but it’s up to them to perform a merge immediatly or not. When the “main” have a stable release, it should be tagged as such and the “production” can pull and update to that revision.

    If a bug is spotted in the production version, any developer can: a) commit (or shelf) their current working dir; b) update their working dir to the same revision “production” is running; c) fix the bug, commit and push the changes; d) update again to where he left and continue working normally. The new changeset will be available for “production” to pull and update, and also for every developer to merge it into their current revision.

    As for things that are specific to each working copy (port number, database instance, etc), you should store them in a separate configuration file, and have this file be ignored my Mercurial. This way, even when changing versions those values will remain the same for each individual developer and the production instance.

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

Sidebar

Related Questions

The software group I currently work in has recently decided to start documenting our
I've recently decided to start using some light unit testing to see if it
I've been a long time user of R and have recently started working with
I learned about Lazy class in .Net recently and have been probably over-using it.
I just found out that Google recently decided to start using their own title
I have been studying python for quite sometime now and very recently I decided
I recently decided to try some java web development, so I installed xampp, the
This is my first time using stackoverflow for a question, I have read a
I've been programming for a while, but just recently decided to start developing for
I'm a web-designer and former coder. Recently I decided to start own project 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.