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

learn more… | top users | synonyms

32
votes
2answers
9k views

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 ...
19
votes
6answers
4k views

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 ...
17
votes
3answers
8k views

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 ...
13
votes
2answers
19k views

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 ...
11
votes
3answers
6k views

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?
9
votes
3answers
5k views

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: ...
9
votes
3answers
448 views

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 ...
7
votes
2answers
10k views

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 ...
7
votes
4answers
4k views

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.
7
votes
1answer
1k views

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 ...
6
votes
2answers
189 views

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. ...
6
votes
6answers
1k views

bitbucket on my own server

I want to have something like bitbucket.org or github (but for mercurial!) on my VDS. I don't need full functionality, but I need it being able to serve repositories, accept changes (with auth!) and ...
6
votes
1answer
420 views

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?
5
votes
3answers
5k views

Setting up a remote Mercurial repository

I have a mercurial repo set up on a server and I'd like to be able to access it remotely. How would I go by doing that?
5
votes
1answer
2k views

Configure Mercurial for SSH on alternate port and specific key with a passphrase?

I'm trying to configure mercurial for use on a remote machine that has sshd running on an alternate port, and for which my login requires a particular key, which uses a passphrase. ssh is configured ...
4
votes
5answers
1k views

What's a good text editor with Mercurial support?

I'm looking for a decent Windows editor with solid Mercurial support. I've had some trouble with Notepad++ (the Windows Explorer plugin was constantly crashing). What are some alternatives? I'm not ...
4
votes
2answers
404 views

Gollum-like wiki based on Mercurial

Is there a Gollum-like Wiki (Gollum uses a Git repo to store its pages) based on Mercurial (instead of Git)?
4
votes
1answer
254 views

Merging Mercurial conflicts in Netbeans

If you look in the image below.. The top left is my changes: $static_pages = 'terms|privacy|about|home|media'; The top right is some one elses changes. $static_pages = ...
4
votes
1answer
759 views

Converting Mercurial Repository To Sub Version (SVN)

This may seem like a very strange situation. Initially we were using subversion (SVN) for version control... then we moved to mercurial and used a tool to convert our previous commits to a mercurial ...
4
votes
2answers
424 views

Can I recover a rm -rf-ed Mercurial repository?

I made the mistake of wiping out my entire project directory with a quick "rm -rf project". Of course, the .hg directory went with it. I had about 15-20 changesets, that I have not pushed to anyone, ...
4
votes
0answers
206 views

Why is hg fetch a deprecated extension? [closed]

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 ...
3
votes
3answers
1k views

How to handle files that don't need version control in mercurial

I am new to mercurial, and for the most part do LaTeX reports and statistical calculations in R using .csv and/or .sqlite files. Re LaTeX, all I really care is the .tex file. Re R, I don't need ...
3
votes
2answers
2k views

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 ...
3
votes
3answers
3k views

Creating an ssh-key just for mercurial pulls/clones

I want to make an ssh key (passwordless) that I can hand out to remote users so they can do an hg pull or hg clone of my repositories. I've gotten as far as making an ssh key that uses only the ...
3
votes
4answers
366 views

How to version control for a solo author creating non-programming documents?

I'm a writer, not a programmer. I'm just now for the first time learning about version control and how it works, and I am wondering how version control could streamline my workflow. For years, I've ...
3
votes
2answers
2k views

Does anyone use hg/git/svn for version control of PSDs/binary files?

I'm not dealing with 1-50 KB JPEGs, but 150-250+ MB psd files for various websites, and I'd like to keep track of the versions with a VCS. If anyone has real world experience with such a scenario, ...
3
votes
1answer
2k views

TortoiseHg and hg purge: do they work together?

TortoiseHg has settings to enable the Mercurial Purge extension. But does it actually have a drop down menu or something so that you can purge a directory without having to go to the command line? Or ...
3
votes
1answer
326 views

Mercurial no longer working in NetBeans?

I have been using Mercurial inside NetBeans for a while now. For the past few weeks now Windows Explorer has been crashing for various reasons, including every time I right click. Finally someone ...
3
votes
1answer
774 views

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 ...
3
votes
2answers
697 views

How to deal with binary files in Google Code?

How do you deal with binary files in your Google Code Mercurial repository? I have heard something about bfiles extension and such, but I do not know where to begin. If you are going to say I should ...
3
votes
1answer
313 views

Mercurial: How I can use external tool for diff?

I want to use kdiff3 as a tool for comparing different versions of a repository. Is there a way how one can do it?
3
votes
2answers
2k views

Pulling from a Mercurial repository over ssh with non-default ports

I'm trying to pull changes from a server which has sshd on port 2345 and an hg server listening locally on port 5432. I already have certifcate-based authentication for ssh, so there no need for a ...
3
votes
1answer
143 views

Moving a Mercurial repository between OS's

I have been working with a local Mercurial repository on my Ubuntu PC for my personal documents. I am planning on using Windows more frequently, so I would like to move the repository over to my ...
3
votes
1answer
736 views

Removing a file from TortoiseHg

I'm having problems removing a file from TortoiseHg. I make the clone, and there are a few test files which I want out. What is the procedure for removing a file from the repository?
3
votes
1answer
275 views

Package dependency errors while installing mercurial in Fedora

I'm trying to install mercurial in my Fedora 14 using yum and get the following error.help to resolve this. yum --enablerepo=rpmforge --disablerepo=remi --disablerepo=fedora install ...
3
votes
1answer
2k views

Mercurial [auth] section

I'm new to mercurial, and I'm trying to set up hgrc in such a way that I can push to the Google Code repository without having to type the password each time. I could just specify a ...
3
votes
0answers
199 views

Far Manager: Highlight file/dirs using external metadata (like SVN, Mercurial, Dropbox, etc)

I've recently migrated to Far Manager 3 and revised my app settings from scratch. One of those improvements was adjusting the file groups highlights (I didn't change them for long time even knowing ...
3
votes
2answers
298 views

How should I install Mercurial on AIX 6.5 without root privilege?

Is there a way to install Mercurial on AIX 6.5 without root? I'm a physics student and am developing code on the IBM cluster in our college and don't have root privilege. Several weeks ago I decided ...
2
votes
3answers
4k views

Installing Mercurial on Mac OS X 10.6

I'm trying to install Mercurial on Mac OSX 10.6, but I'm having problems: I have Mac OS X 10.6, so I downloaded Mercurial 1.4.3 for OS X 10.6 from http://mercurial.berkwood.com/ I install the ...
2
votes
2answers
155 views

Where should I store my mercurial repo on linux?

I'd like to set up a mercurial repo on a linux machine. Originally, I was going to set it up in my home directory but a lot of different users are going to be accessing it so it doesn't seem like the ...
2
votes
2answers
2k views

What port(s) etc. need to be open on a firewall to allow successful operation with BitBucket

Over the weekend, our IT department installed an updated firewall. As a result, we are no longer able to pull from (and push to) the repository on BitBucket. Attempting to perform a Mercurial ...
2
votes
2answers
2k views

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 ...
2
votes
1answer
452 views

How to deploy only select files through BitBucket

I'm hosting a small php-based website through Bitbucket. I have some files under version control that I don't want to deploy in production (helpful scripts, .xcf files, etc). Is there some way to just ...
2
votes
1answer
164 views

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 ...
2
votes
1answer
1k views

Tortoise HG “Out of Memory” While Trying to Clone Repo

While trying to clone a ~500 MB repository onto my local drive using mercurial, I repeatedly get the "Out of Memory" error. I have 2 GB of memory and I have never seen this. I installed the latest ...
2
votes
1answer
392 views

Why is the glog command gone for mercurial at ubuntu?

I am using ubuntu 9.10 and installed mercurial (hg) via apt-get. If I now call hg glog it says: unknown command 'glog'. I am using version 1.3.1 of hg. How can I fix this?
2
votes
2answers
3k views

Installing Mercurial on Debian Lenny

today I've installed Mercurial on Debian, but then realized it was the 1.0 version that is not compatible with new the repository format. I'm not sure which course of action to take, install Mercurial ...
2
votes
1answer
457 views

Mercurial set up ACL

I'm trying to set up ACL. I've got it mostly working. However, I've got a couple of specific questions. Basically, I'm trying to set up a group @group that will be allowed to access a bunch of ...
2
votes
1answer
529 views

How can I disable color highlighting and marks of versioning in NetBeans?

How can I disable color highlighting and marks of versioning in NetBeans? (in my case, mercurial) PS: Now that I see, highlighting is on html tag attribute values, and doesn't respond to versioning, ...
2
votes
1answer
474 views

Auto-updating BASH prompts with Mercurial repository info

I have followed the directions outlined by Steve Losh to colorize and format my bash prompt, however, the prompt doesn't update. My export PS1 line looks like this: export ...