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
77
votes
8 answers

Less or More in Windows?

Is there a command in the Windows DOS prompt that is equivalent to the UNIX less or more? Basically, the problem is that when I type hg log, the output has too many lines to fit on the screen and I want to paginate it. Any ideas on how to solve this…
46
votes
3 answers

How to add an empty folder in a Mercurial project?

In my project, I am using Mercurial and a folder in when the user can upload file. But since the user will upload files, the folder is empty. I don't know how I can add this folder to my project without putting any file inside. Do you know how I can…
Natim
  • 1,677
37
votes
7 answers

Mercurial. Colour output piped to less

Operating system: Mac OS 10.6.2 I'd like to be able to see colour output when piping certain commands through less. Two examples: I've got ls aliased to ls --color=auto, so I'd like to be able to see colour when I do this: ls -l | less I've also…
mmacaulay
  • 683
20
votes
3 answers

How to Use WinMerge as the Diff tool for Mercurial

I'm using the Mercurial distributed version control system, and I'm wondering how I can configure it to use WinMerge instead of its own internal diff tool. I've already got WinMerge as the merge tool, but I want Mercurial to use WinMerge when I…
quanticle
  • 896
17
votes
3 answers

How do I remove outgoing changesets in Mercurial (hg)

when I run hg out I have 3 outgoing changesets. I want to trash them and revert to how things are in the central repository. How?
adambox
  • 955
17
votes
3 answers

How do I prevent a "No supported authentication methods available" error when using TortoiseHg?

I'm trying out Mercurial for the first time but am having problems doing a push/pull/clone with a remote server (in this case it's codebasehq.com) when using TortoiseHg. Here are some steps to reproduce: Download and install TortoiseHg Go…
jammus
  • 1,294
16
votes
4 answers

Can you remove a file from Mercurial without removing it from the filesystem like Git?

I've got some files in a repo that I don't want tracked, is it possible to remove them without removing the actual files from the filesystem? This would be equivalent to git's rm --cached.
ghickman
  • 385
12
votes
0 answers

Why is hg fetch a deprecated extension?

Mercurial's fetch extenson conveniently pulls and merges from a remote repository. Recently, this feature has been deprecated by the developers. They recommend avoiding it and it is on the unloved features list. It is useful in many cases to be able…
Jan
  • 243
10
votes
1 answer

How to list every file for every revision in Git (like Mercurial's hg manifest --all)?

Mercurial has a command to list every file that the repository has for every revision: hg manifest --all Is there an equivalent command in Git?
IT2
  • 101
9
votes
3 answers

Is there a Windows Explorer extension that shows an inline command prompt?

Does anybody know of a Windows Explorer extension that will add a pane giving an inline command prompt, set to the current directory? I know that on Windows 7 I can Shift-Right Click and get Open Command Prompt here, but my desktop soon gets…
9
votes
1 answer

Git equivalent to hg update

I've used Mercurial for some time now, and am used to its workflow. Suddenly, I need to work with a Git repository, and I cannot make the install work from the head revision. In Mercurial I would just update to an earlier revision and go, but I…
dimo414
  • 716
9
votes
3 answers

Installing Mercurial 1.5.4 on Ubuntu 10.04

I've downloaded the source and tried to install via the README instructions: sudo make install but I get the following errors: python setup.py build running build running build_mo warning: hgbuildmo: could not find msgfmt executable, no…
gvkv
  • 529
8
votes
2 answers

Revert a deleted file several commits later

So I started down a new branch of development and decided that some files needed to go. Several commits later I realise that a certain decision was wrong and I need a couple of the files back. My initial thought of how to get the files back is to…
7
votes
3 answers

Colors in cygwin being displayed as raw ANSI codes

When running command-line Mercurial with the color extension on, the colors appear as expected in the Windows command prompt (cmd.exe). However, in cygwin the colors are appearing as the underlying ANSI codes (for example: ←[0;34;1m). When I…
Ash
  • 3,064
  • 4
  • 30
  • 31
7
votes
3 answers

How do I clone a repository when I'm behind a proxy?

There's an option http_proxy which should allow access through proxy, but it's not clear whether this should be in the command line, .hgrc or some global variable. I tried it in the command line: hg --config=http_proxy.host=_proxy server_ but I…
Vineeth
  • 173
  • 1
  • 1
  • 5
1
2 3
10 11