Questions tagged [mercurial]

Mercurial is a fast, open-source, distributed version control system.

Mercurial logo

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

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.

162 questions
6
votes
2 answers

What to do next with Mercurial after I install it in my PC?

I have downloaded and installed Mercurial in my PC. However, I don't know what to do next. I thought it's like other programs; that after installing it'll just appear and then you can already use it. What am I do next?
anj
  • 61
4
votes
0 answers

Change Mercurial's history so that add/delete becomes a rename

I renamed a file and committed the change. Mercurial recorded it as an add and a delete. Now, a week later, I wish I had known to "rename" the file so that the repository would let me follow the file's history across that change. Is there anything I…
MM.
  • 613
3
votes
1 answer

Mercurial: How can I see in advance what changes will an `hg up` do to my working directory?

I'm regularly updating a production server which is running from an hg working directory. I always update to a merged/resolved changeset after testing that changeset in the development server, but want an extra layer of safety to see, before…
GJ.
  • 9,843
3
votes
1 answer

How to get mercurial to ignore patterns from .hgignore correctly?

I have the following .hgignore: \.pyc$ yet in my hg st .pyc files still appear as modified and get committed with hg ci. I've also tried this .hgignore: syntax: glob *.pyc But with the same results.. Any idea what could be wrong?
GJ.
  • 9,843
2
votes
1 answer

Getting parent repository path

I have a cloned mercurial repository (and working copy) in my own machine. Is it possible if I want to know the parent path to a specific file? For example, I cloned a repository that contains a file…
Jeffrey04
  • 555
2
votes
2 answers

Mercurial What is Wrong with this command?

Y:\>hg -R Y:/mercFlow.cache/vm-linux rename Migration-2010/create_directory_stru cture.pl Migration-2010/create_directory_structure.pl2 abort: Migration-2010/create_directory_structure.pl not under root I am in windows using Mercurial. I am trying…
1
vote
2 answers

How to batch rewrite history in Mercurial

I would like to batch-edit a number of commits to automatically make modifications to author and commit message (being able to apply a few regular expressions would be fine). I am aware that this is rewriting history, will cause trouble if there are…
Nikratio
  • 389
1
vote
1 answer

Help with reinstalling Mercurial

I used Mercurial on my old computer without any trouble a month ago, but it broke on Friday and I needed to reinstall. Now when I try to do anything from my repository directory I get the error: 'hg' is not recognized as an internal or external…
Hello
1
vote
0 answers

Mercurial repository in weird state: Missing files are not brought back by update

I have a mercurial repository that I managed to get into a weird state. I suspect the culprit is the fact that I used the repository (as in: the same folder on my disk) with both the Windows and Linux hg clients (using WSL 1 on a Windows machine). I…
1
vote
1 answer

Pushing only certain changes to all branches in Mercurial

I have a mercurial repository with numerous branches for stable, development, experimental features etc. However, I've found a bug in a set of core application files that are common to each branch. Is there a way to modify these files, and then push…
richzilla
  • 2,423
0
votes
1 answer

How to update repository after branch pull

When I create a new branch with Mercurial, I'm able to pull only that certain branch with : hg pull -b The console prints the number of the files that had been modified, so not a problem with this. But when I do : hg update The…
0
votes
1 answer

In MacHg is there a way to only see changesets that modified a specific file?

Using Tortoise Hg you can right-click on a file and view its revision history, which only shows those changesets in the repository that changed that specific file. Is there a way to accomplish the same thing in MacHg? If I view the full revision…
0
votes
0 answers

How to align branches

I am using Mercurial version 5.0.2. On one server I pushed a changeset. On another server I pulled but don't see it. It looks that server where I pushed is on different branch compared with another server. My confusion is that hg tip show my…
susik
  • 653
0
votes
1 answer

Mercurial server error when push storage with large files

I've got older Debian Jessie server with Mercurial 3.1.2 and Phabricator. Long time Phabricator protest that HG is old and there is secure problems and I decide to make brand new VM with latest HG. Old: lsb_release -a No LSB modules are…
Topper
  • 103
0
votes
1 answer

hg add -X not working

I'd like to hg add excluding files that begin with ._, or even better exclude all hidden files. It's not working, it's just completely ignoring my -X option. I tried the following: hg add -n -X '._*' hg add -n -X '*._*' and just to be sure also: hg…
o0'.
  • 2,327
1
2