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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T13:34:36+00:00 2026-05-15T13:34:36+00:00

Using a Macbook, I am worried that if the hard drive is on the

  • 0

Using a Macbook, I am worried that if the hard drive is on the road and it goes bad, then 3 days of code can all be lost.

So I actually have a tmp repository on our main server computer, and I can hg push to it. The dilemma is, I can’t push unless I commit first, and from previous experience, we shouldn’t commit unless we are ready to push to a central server (to share code with coworkers, merge, etc) (the reason is, we can’t push selected files — we have to push all committed files or push nothing). So how to solve this?

Is there a way to say, “copy all MODIFIED FILES (and added files) to /user/peter/2010-06-18 on the central server?)” or not commit but somehow get it onto the server?

  • 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-15T13:34:37+00:00Added an answer on May 15, 2026 at 1:34 pm

    The normal way is to just commit. With a DVCS one is urged to “commit early, commit often”. Commit locally often, then for backup purposes push to your tmp repo on the server frequently. When you’re happy with your work, then you push from your tmp repo to your shared “central” server.

    There’s no need to make sure everything compiles after each changeset, the norm is to just make sure that each back of changesets you push leaves the ‘tip’ in a compileable state. Generally one triggers the continuous integration build server to turn a builds after each group of changesets (changegroup) arrives, and it only considers the ‘tip’.

    If you really, really can’t stand having changesets that can’t stand on their own, then a mercurial pro would use mercurial queues to keep a versioned patch pushed to a separate queue repository while working on it. Someone willing to play with fire would use the collapse extension to merge the sequence of changesets into a single changeset before pushing to the shared repos.

    Of the three options presented:

    1. fix your workflow so that the central repo can handle changesets that don’t compile, so long as they’re part of a changegroup that compiles
    2. use mercurial queues to keep a patch in a versioned patch repository
    3. use the collapse extension to rewrite history (play with fire)

    I think the first is most commonly done, and generally the “right” way.

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

Sidebar

Related Questions

First of all I am new to Mac. I am using a macbook pro
I am trying to debug C++ code using Eclipse Galileo on my MacBook Pro
i'm using macbook pro. idea 10 can open more than one window , but
If you are using DropBox on MacBook you must have seen that once we
I am using a Macbook running 10.6. I am using VMware Fusion to run
I'm trying to develop for Arduino using a Macbook Air. I purchased an Arduino
I am using eclipse galileo on my macbook pro. After a few minutes it
I recently had the MacBook I'm using to develop an app (for work) rebuilt.
I'm using python 2.5 in windows on a macbook pro with IDLE. How do
I'm using Eclipse with C++ plugins on my macbook, trying some practice projects to

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.