Questions tagged [mercurial]

Mercurial is a fast, open-source DVCS (Distributed Version Control System).

Mercurial is a distributed version control system, . It is dedicated to speed and efficiency with a sane user interface. The main part of the code is written in , with a small part in . The project is open-source, distributed under the GPL.

External Links ==============

Please report bugs to the bug tracker instead of posting them here on Stack Overflow. Otherwise the Mercurial team may not see them, and you will become frustrated from the lack of response.

Internal Links ==============

This is a compilation of information on using Mercurial for beginners for practical use.

Beginner - a programmer who has touched source control without understanding it very well.

Practical - covering situations that the majority of users often encounter - creating a repository, branching, merging, pulling/pushing from/to a remote repository, etc.

Notes:

  • Explain how to get something done rather than how something is implemented.
  • Deal with one question per answer.
  • Answer clearly and as concisely as possible.
  • Edit/extend an existing answer rather than create a new answer on the same topic.
  • Please provide a link to the Mercurial wiki or the HG Book for people who want to learn more.

Questions =========

Installation/Setup

Working with the code

Tagging, branching, releases, baselines

Other

8242 questions
6
votes
2 answers

Small, temporary branch in Mercurial

I've read a lot about Mercurial and branching in it, however, I am still very much a version control newbie. I'm currently working on a project, where I have been tasked to work on a new module. I have a "main" repository, which contains the latest…
Austin Hyde
  • 26,347
  • 28
  • 96
  • 129
6
votes
1 answer

Hg: Find out if a branch has been merged in to default?

So I've got a long and detailed Mercurial Repository which has been worked on by several times over a long period of time with lots of branches, in that time no one knew that you can close a branch. Recently I've closed nearly 1200 abandoned heads…
Mark Broadhurst
  • 2,675
  • 23
  • 45
6
votes
1 answer

Is there any mercurial hosting actually *on* Amazon EC2?

I need to be able to update my ec2 instance from a label in mercurial when it resets so my application is always set at the right revision. It'd be great to be able to push my changes to a mercurial host and have my instances automatically update…
Neil Trodden
  • 4,724
  • 6
  • 35
  • 55
6
votes
3 answers

What to ignore in a Mercurial .hgignore for a Ruby on Rails app

I created a hello world app with rails HelloWorld command. I ended up with many directories: app config db doc lib log public script test tmp vendor Should all this be under sources control? What would be a good default .hgignore file for a Ruby…
Sylvain
  • 19,099
  • 23
  • 96
  • 145
6
votes
2 answers

How do I push a new project to a shared Mercurial multi-repository?

I have a local machine ("laptop") and a shared Mercurial repository on another machine ("server"). The shared repository is set up as a multi-repository as described in the Mercurial documentation using Apache, the hgwebdir.cgi script and Mercurial…
j-g-faustus
  • 8,801
  • 4
  • 32
  • 42
6
votes
2 answers

How can I format the mercurial "hg log" output easily as parsable JSON?

I would like a command-line example on how to easily use hg log, with hg filters, and output it safely to JSON (with an array that contains the files). Multi platform (windows/unix) would be great.
Tw Bert
  • 3,659
  • 20
  • 28
6
votes
3 answers

What is the correct way to merge/transform a dev branch into a stable branch in Mercurial?

I work for a web development company that uses Mercurial as its DVCS of choice. We're currently in the process of creating a new version of a site that is already in production. Both a stable and a development branch of the site exist in the same…
JK Laiho
  • 3,538
  • 6
  • 35
  • 42
6
votes
2 answers

What is your workflow to coordinate Pivotal Tracker with Mercurial?

I want to use Pivotal Tracker for a new project but I don't know how to use it with Mercurial to make it easy to go from one tool to the other. What workflow do you use to link user stories/feature in Pivotal Tracker with your DVCS (Mercurial/Git)?…
Symbiosoft
  • 4,681
  • 6
  • 32
  • 46
6
votes
2 answers

How to create a Mercurial repository on a remote IIS web server

I have a Windows Server 2003 running Mercurial's hgwebdir.cgi to serve repositories. Push/Pull etc is working as expected for existing repositories. Currently I'm using remote desktop If I need a new repository on the server. Is there a better way…
Tim Murphy
  • 4,892
  • 4
  • 40
  • 48
6
votes
5 answers

How to fix an error in a Mercurial changeset comment?

Is there a way to rewrite the hg commit message if the wrong information was entered? We always include our Bug ID when we commit a changeset. For instance: hg commit -m "Bug 14585: LastName field should be mandatory" But If I put the wrong bug ID,…
Sylvain
  • 19,099
  • 23
  • 96
  • 145
6
votes
2 answers

Making mercurial subrepositories behave like subversion externals

The FAQ, and hginit.com have been really useful for helping me make the transition from svn to hg. However, when it comes to using Hg's subrepository feature in the manner of subversion's externals, I've tried everythign and cannot replicate the…
6
votes
1 answer

use hg to synchronize my project between my two computer

I have two computer : the desktop in my company and the portable computer in my home. Now I want to use the hg to synchronize the project between them using a "USB removable disk". So I wonder how to implement it? THe pro in my desktop is :…
hguser
  • 35,079
  • 54
  • 159
  • 293
6
votes
6 answers

Using Mercurial with TFS-like work item tracking

Does Mercurial offer any type of extensions that offer functionality similar to TFS's work items that when you check in changes that you can associate them to features/defects? If there isn't much (or any) support for this, how do you handle ALM…
Chris Marisic
  • 32,487
  • 24
  • 164
  • 258
6
votes
4 answers

What is the standard or best way to deal with database branching with Mercurial or Git branches?

This has been a big question mark on my mind. I'm moving to Mercurial or Git very soon for my web software, and sometimes my branches require significant database changes which other branches should not see. This, I can't always share the same…
Chad Johnson
  • 21,215
  • 34
  • 109
  • 207
6
votes
1 answer

Mercurial: a few questions all related to .hgignore

I've been working for a long time with a .hgignore file that was fine and recently added one new type of files to ignore. When running "hg status", I noticed this: M .hgignore So Mercurial considers the .hgignore to be a file that needs to be…
SyntaxT3rr0r
  • 27,745
  • 21
  • 87
  • 120
1 2 3
99
100