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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T15:12:14+00:00 2026-05-31T15:12:14+00:00

I use Mercurial in a single-user workflow to have the option to roll back

  • 0

I use Mercurial in a single-user workflow to have the option to roll back changes if my coding or writing goes horribly wrong (I primarily use the Stata and R statistics packages and LaTeX). While working only locally, this has been easy since all I have is the main repo.

Recently I have started ssh-ing into a Linux server for more computational power. So far I have been manually copying files back and forth and using Mercurial only locally, but I would like to use Mercurial to take care of this and keep these two workflows synchronized. Also, I like the ability to code both locally (on my laptop or desktop) and on the server.

Do I need to work on a clone of the main repo on the server and keep the main repo untouched? Or can I work directly in the main repo when I am on the server? In this question @gizmo points to this workflow guide; the “single developer” discussion is helpful, but it’s still not clear to me that I can work in the main repo while I’m on the server without causing some major problem that I don’t yet understand.

Thanks!

Edit: I should add that I have worked through Joel Spolsky’s HgInit.com tutorial and I’m comfortable pushing/pulling/cloning/etc over ssh, but I am still not sure if I can work in the main repo without causing heartache later. Or maybe this is more a philosophical question? 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-31T15:12:16+00:00Added an answer on May 31, 2026 at 3:12 pm
    • Mercurial is DVCS, it means – in each location you have both: local working copy and local repository
    • Mercurial is DVCS, it means – you can freely exchange (pull|push) data between repos (if they provide remote-access methods).

    If you

    comfortable pushing/pulling/cloning/etc over ssh

    and don’t forget perform pull|push cycle around your work at home (in order to don’t run hg serve at home-host and sync from server as source) you don’t get any headache at all with perfect linear aggregated history on each place. And even you forget to sync repo sometimes, you get in worst case two heads later, which you’ll be able to merge easy (doesn’t know formats of Stata and R data-files, but LaTeX, as text, is mergeable)

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

Sidebar

Related Questions

I use Mercurial/TortoiseHg as my source control. So far I have a single app
I have teamcity project that use mercurial. I did a few manually changes to
I've used ( and still use ) mercurial and git. I have some repos
I'm a Git user trying to use Mercurial. Here's what happened: I did a
I have a little private Google code project. For a SCM I use Mercurial.
I don't have admin rights to my pc, but would like to use Mercurial
We are starting to use Mercurial for source control. We have configured the HGRC
I have switched our internal codebase to use Mercurial, with a hosted remote repository.
I have several repositories for personal use and I back them up on my
I use mercurial for php projects and my .hgignore file is not working. It's

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.