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
0 answers

maven-release-plugin fails to release:prepare

I'm using mercurial, maven and maven-release-plugin to make a release. While executing task release:prepare it fails with the following stack trace: [INFO] Transforming 'producer'... [INFO] Not removing release POMs [INFO] Checking in modified…
sbeliakov
  • 2,169
  • 1
  • 20
  • 37
6
votes
2 answers

Create a hg bookmark after committing a changeset

I cloned a Mercurial repo and made some changes in the checked out code. I then grabbed those changes (7 files) and committed them with hg commit but without having created a bookmark first. This is the output of my hg summary command: parent:…
Mike Laren
  • 8,028
  • 17
  • 51
  • 70
6
votes
2 answers

Mercurial: alias with arguments

I want to create an alias so that when I run: hg pushbranch <> it aliases to: hg push -b <> Where SOME_BRANCH is the name of a branch I wish to push. I can create an alias in my .hgrc, but don't know how I could supply…
Adam Parkin
  • 17,891
  • 17
  • 66
  • 87
6
votes
2 answers

How to commit many numbered old versions of a file

I'm looking for an elegant way to populate Mercurial with different versions of the same program, from 50 old versions that have numbered filenames: prog1.py, prog2.py ... prog50.py For each version I'd like to retain the dates and original…
6
votes
2 answers

Mercurial/Python - What Does The Underscore Function Do?

In Mercurial, many of the extensions wrap their help/syntax string in a call to an underscore function, like so: _('[OPTION] [QUEUE]') This confuses me, because it does not seem necessary (the Writing Extensions instructions don't mention it) and…
dimo414
  • 47,227
  • 18
  • 148
  • 244
6
votes
3 answers

Best way to migrate mercurial repo with subrepositories to git, preserving history?

I'm trying to migrate a mercurial repository to git, but the problem is that the mercurial repository has subrepositories (some with branches), and lots of merges and branches itself. I'd like the final git repository to keep all this history and be…
6
votes
2 answers

How to expand some version keywords in Mercurial?

In CVS I could put $LOG$ into the source file and when the file is checked in $LOG$ will be expanded into true logs in the file. But how to implement this in Mercurial? Of course I mean the other keyword such as the latest checkin date and time.
6
votes
1 answer

How can I repair a repository broken by hg unshelve?

I used hg shelve in a repository, where I had some unfinished changes because I needed to switch to a different head and perform unrelated changes. Once my work on the other head was committed, I switched back to the head on which I had originally…
kasperd
  • 1,952
  • 1
  • 20
  • 31
6
votes
3 answers

Using Git or Mercurial, how would you know when you do a clone or a pull, no one is checking in files (pushing it)?

Using Git or Mercurial, how would you know when you do a clone or a pull, no one is checking in files (pushing it)? It can be important that: 1) You never know it is in an inconsistent state, so you try for 2 hours trying to debug the code when…
nonopolarity
  • 146,324
  • 131
  • 460
  • 740
6
votes
1 answer

Which is better for VS2010, VisualHG or hgscc (64 bit install)?

Simple question, have you used them, which do you prefer? Do either of them display the current branch in an easy to see place? Edit: If you have a preference, please let me know why. It is crucial in making an educated decision.
vfilby
  • 9,938
  • 9
  • 49
  • 62
6
votes
1 answer

Repository organization for Hadoop project

I am starting on a new Hadoop project that will have multiple hadoop jobs(and hence multiple jar files). Using mercurial for source control, I was wondering what would be optimal way of organizing the repository structure? Should each job live in…
Alex N.
  • 14,805
  • 10
  • 46
  • 54
6
votes
2 answers

Use "hg unshelve" like unstashing with Git

When invoking hg unshelve --keep and I get a conflict, I need to resolve the conflict and then invoke hg unshelve --continue --keep again. Why is the last step necessary? And why I can't invoke hg unshelve --continue --keep directly without…
Thomas S.
  • 5,804
  • 5
  • 37
  • 72
6
votes
2 answers

How can I find a gitk type of tool for hg

Can you please tell me where I can find a 'gitk' type of tool for hg on ubuntu? I have tried '$ sudo apt-get install tortoisehg' but I get this: $ hgtk abort: This version of TortoiseHg requires Mercurial version 1.3.n to 1.4.n, but finds 1.5.2
michael
  • 106,540
  • 116
  • 246
  • 346
6
votes
2 answers

Script to install and compile Python, Django, Virtualenv, Mercurial, Git, LessCSS, etc... on Dreamhost

The Story After cleaning up my Dreamhost shared server's home folder from all the cruft accumulated over time, I decided to start afresh and compile/reinstall Python. All tutorials and snippets I found seemed overly simplistic, assuming (or…
tmslnz
  • 1,801
  • 2
  • 15
  • 24
6
votes
3 answers

hg-git repository not found

I would like to configure my Mercurial project to be able to push it into gitHub repository. While using command: hg push git+ssh://git@github.com/myusername/myproject.git I receive a msg: abort: repository…
Malvinka
  • 1,185
  • 1
  • 15
  • 36
1 2 3
99
100