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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T14:05:15+00:00 2026-05-13T14:05:15+00:00

Mercurial’s website says about creating a project this way: Create a project and commit

  • 0

Mercurial’s website says about creating a project this way:

Create a project and commit

$ hg init (project-directory)
$ cd (project-directory)
$ (add some files)
$ hg add
$ hg commit -m 'Initial commit'

I need a single user, local repository. I assume this does the trick, right? The thing I don’t understand is:will it open a server process, or is the hg binary doing all the work each time it is called?

  • 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-13T14:05:16+00:00Added an answer on May 13, 2026 at 2:05 pm

    The hg binary is doing all the work each time it is called.

    hg doesn’t really need a server. You can create one really easily using the hg serve command, but that’s more for interacting with other people than anything else, and by default it doesn’t allow write access.

    Mercurial survived for a long time with a server that didn’t allow write access. A decentralized VC system really doesn’t need one, or at least it’s not anywhere near the absolute requirement it would be with a centralized system. Everybody just writes to their local repository and then advertises their changes for other people (like the maintainer of the ‘official’ tree) to pull.

    In fact, even if there is a central server you can push to, you always commit your changes to your local repository before you push them. The push is more like syncing up a database than it is like the commit you would think of if you’re used to things like Subversion or Perforce.

    Mercurial looks for a directory called .hg in the current directory, or a parent directory, or a parent of the parent, etc… to determine if it’s in a Mercurial repository. The hg init command will work for users with no administrative privileges whatsoever.

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

Sidebar

Ask A Question

Stats

  • Questions 490k
  • Answers 490k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer It seems you're asking for a Full Text Index, which… May 16, 2026 at 9:10 am
  • Editorial Team
    Editorial Team added an answer Try using: #define RESETCOLOR "\033[0m" That should reset it to… May 16, 2026 at 9:10 am
  • Editorial Team
    Editorial Team added an answer [NSTask launchedTaskWithLaunchPath:@"thisCMD" arguments:[NSArray arrayWithObject:username]]; Or if username isn't already a… May 16, 2026 at 9:10 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

Mercurial has a way of printing the root directory (that contains .hg) via hg
Mercurial supports push-style cloning of repositories to remote hosts, however newly cloned repositories don't
mercurial-server manages user database under keys folder. Users and groups are represented by files
Mercurial provides a -A, --after option for moves and copies, which records those operations
Mercurial - Is it possible to merge changes from the trunk to a branch,
Mercurial newbie here, I have a simple question. I deleted one of my files
When Mercurial is running under cygwin, it's a bit tricky to figure out how
The mercurial wiki has hints on how to display the changesets a bundle would
Installing Mercurial on Mac OS X 10.6 Snow Leopard I installed Mercurial 1.3.1 on

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.