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

Transplant into workspace without commiting

Is there a way to have transplant a single changeset without commiting? I'd like to be able to review the changes prior to doing a commit.
Robert Jeppesen
  • 7,837
  • 3
  • 35
  • 50
6
votes
1 answer

Is DVCS (Mercurial) not for me?

I work in a company where we create a lot of small customer-specific applications. We are a few developers but most of the time there is only one developer per project. Customer1 ProjectX App Tests ProjectY App …
adrianm
  • 14,468
  • 5
  • 55
  • 102
6
votes
3 answers

Mercurial repository statistics, for finding candidates for refactoring?

In a busy repository, I can foresee some files with too much central logic in one place being edited constantly. Is there any way to find such files by asking Mercurial, either through bundled extensions, 3rd party extensions, or any external…
Lasse V. Karlsen
  • 380,855
  • 102
  • 628
  • 825
6
votes
2 answers

IntelliJ IDEA suddenly lost all class relations. Cannot resolve symbol

I committed and pushed my changes business as usual and packed my laptop. As I docked it at the office and opened IntelliJ IDEA again. All the project classes were shouting red. As in No classes were found, all imports were red, as in not found. The…
Steve Waters
  • 3,348
  • 9
  • 54
  • 94
6
votes
2 answers

Mercurial: how to merge changes to a file that's renamed in the other branch?

I have a Mercurial repository with four branches in it. One is the "common" branch, the other three are "specific" branches which consist of some cosmetic changes applied to the common branch. One of those cosmetic changes consisted of renaming some…
Tara McGrew
  • 1,987
  • 19
  • 28
6
votes
2 answers

TortoiseHg Workbench Graph symbols meaning

What is the meaning of the TortoiseHg Workbench Graph symbols? I googled it and got only this (http://tortoisehg.bitbucket.io/manual/2.0/workbench.html) but it has no description of the symbols. For example: Pentagon (that sometimes changes…
JonyD
  • 1,237
  • 3
  • 21
  • 34
6
votes
2 answers

Mercurial - HTTPS or SSH?

I have switched our internal codebase to use Mercurial, with a hosted remote repository. I've read that using Mercurial over SSH instead of HTTPS is faster because the data is compressed before it is sent. But... compared to HTTPS, it's quite a…
Noah Heldman
  • 6,724
  • 3
  • 40
  • 40
6
votes
2 answers

Clone private Mercurial repository on bitbucket.org into InetlliJ IDEA with hg4idea plugin?

I created private repository on bitbucket.org. I want to use it from IntelliJ IDEA. I choose "Check out from Version Control" and there is message box with field Mercurial Repository URL and Test Repository button. What should I enter into Mercurial…
amorfis
  • 15,390
  • 15
  • 77
  • 125
6
votes
2 answers

Keeping two jenkins server in sync

I have a usual jenkins master jettysburg:8888/jenkins, and a failover jenkins master jettyperry:8888/jenkins. I am planning to use mercurial to keep the jobs directory of the two masters in sync. Usually, most of the time, new jobs and builds…
Blessed Geek
  • 21,058
  • 23
  • 106
  • 176
6
votes
2 answers

Mercurial authentication caching?

My Mercurial server requires https authentication for pulls. How can I cache my authentication information on the client without exposing a plain-text password on disk? I'm looking for something like using sudo with mercurial and ssh authentication…
Gili
  • 86,244
  • 97
  • 390
  • 689
6
votes
2 answers

Using intellij idea merge as default merge tool in hg

So, i've found this page here, showing how to use intellij's idea merge and diff from command line, and i'm trying to set it as a default for hg. However, i still have some problems when merging branches (many files): If hg merge is called while…
6
votes
1 answer

What does this questionmark (mercurial) mean?

It seems like a simple question, but why does this file have a question mark in front of it after I have run the commands "Hg push" and "Hg commit". How do I get this new file to upload to the mercurial server? Why did my mercurial commit leave…
polka
  • 1,383
  • 2
  • 25
  • 40
6
votes
2 answers

Mercurial: "hg push" to smb share does not work

I use Ubuntu 16.04 and Mercurial 3.7.3. Our repository is accessible only as an SMB share. I cloned the share to a folder in my home folder (I simplified the names a bit): > hg clone "/run/user/1000/gvfs/smb-share:server=xyz.com,share=abc$/Repo"…
kol
  • 27,881
  • 12
  • 83
  • 120
6
votes
2 answers

Migrating from bazaar to mercurial?

I have a small project which I started in bazaar, as an exercise to learn bzr. I've since decided I prefer Mercurial. How might I migrate this project to Hg?
matt wilkie
  • 17,268
  • 24
  • 80
  • 115
6
votes
2 answers

hg pull from bitbucket using fabric

I'm trying to use fabric to deploy a Django project and I get this error when I run hg pull: [myusername.webfactional.com] run: hg pull [myusername.webfactional.com] out: remote: Warning: Permanently added the RSA host key for IP address…
Neil
  • 8,925
  • 10
  • 44
  • 49