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

learn more… | top users | synonyms (1)

27
votes
6answers
77k views

How to configure basic authentication in Apache httpd virtual hosts?

I'm trying to configure mercurial access using Apache http. It requires authentication. My /etc/apache2/sites-enabled/mercurial looks like this: NameVirtualHost *:8080 <VirtualHost *:8080> ...
18
votes
2answers
7k views

Setting Mercurial with Active Directory authentication and authorisation

I am evaluating the possibilities of moving my organisation to Mercurial, however I am stumbling on two basic requirements which I can't find proper pointers to. How do I set up Mercurial's central ...
15
votes
5answers
3k views

Mercurial (hg) with active directory

Can I setup Mercurial to authenticate users on Active Directory? In my case, hg can run on Windows, Linux or FreeBSD, but I need to use AD users. Note: if it is possible, then please point me to a ...
15
votes
3answers
3k views

In Bash, are wildcard expansions guaranteed to be in order?

Is the expansion of a wildcard in Bash guaranteed to be in alphabetical order? I am forced to split a large file into 10 Mb pieces so that they can be be accepted by my Mercurial repository. So I was ...
14
votes
4answers
896 views

Mercurial repository corruption

This is somewhat related to this question but is a different question. We have a central Hg repository, served to users via SSH and mercurial-server. We have a number of Mac, Linux and Windows ...
10
votes
7answers
457 views

Where to maintain central source repository?

What is the industry best practice regarding securing access to source code? I am thinking SSL only connections via apache allowed over to our server on an obscure port that doesn't conflict with ...
10
votes
2answers
2k views

How to setup etckeeper with Mercurial in Ubuntu?

I'm interested in installing etckeeper with Mercurial in my Ubuntu system. My reason is that I don't know how to use Git and don't want to learn at the moment. If I check the package description it ...
10
votes
3answers
3k views

Is there a Mercurial admin web frontend?

Something like Bitbucket (of course much less feature-rich). It must be able to hold multiple repositories, and be private (i.e. if you don't login, it doesn't show you anything). It should be able ...
10
votes
5answers
3k views

How to setup a central repository on a Windows 2008 server

I would like to setup a central Mecurial repository on a Windows 2008 server which only allows both push and pull access to certain users. This is to allow developers working remotely to push/pull ...
8
votes
5answers
730 views

Hosting multiple repositories (svn, hg, git)

I've recently acquired a dedicated server, and need to move several repositories to it from a source control hosting service. Having not much experience in server administration however I have no clue ...
8
votes
2answers
395 views

Mercurial browser on Windows 2003 takes several refreshes before displaying repositories

When attempt to browse my Mercurial repositories it usually takes several refreshes before the repository list is displayed. The configuration is as follows: Windows Server 2003 (Dedicated machine ...
7
votes
11answers
1k views

Git and Mercurial

I would like to know: What's the difference between Git and Mercurial? What are the pros and cons of using them? How good is the Windows support for both tools?
7
votes
1answer
663 views

Can't find binary, but path included in $PATH

So I tried to install Mercurial on Ubuntu 10.04. First I used the ppa repo, but got a pythonpath error, which I gave up on. Next try was install from source, everything went well, except it can't find ...
7
votes
3answers
1k views

Stopping pushers from breaking my central Mercurial repository

I'm running the central mercurial repository, and I understand that the normal "push" command will stop if the remote user is trying to force multiple "head"s to my central repository. The intention ...
7
votes
2answers
470 views

Mercurial Web Server

Is there a Mercurial equivalent to VisualSVN Server? I want to setup an http web server for a mercurial repository that has nested repositories. Using the docs it's very difficult to get what I want.
6
votes
2answers
3k views

What's the difference between Mercurial's “tip” tag and the “default” branch

We are just switching to Mercurial where I work this week. I'm starting to read material, and was hoping somebody could succinctly answer this question: What's the difference between Mercurial's ...
6
votes
5answers
7k views

How to let TortoiseHg (Mercurial) on Windows use the Private Key file generated (by Puttygen)?

I have used Puttygen to create a public and a private key, and I'm now ready to let TortoiseHg on Windows 7 do a clone by going to ssh://somebody@code.somewhere.com/somecode but there seems to be ...
6
votes
1answer
3k views

Can Mercurial repositories safely be moved/renamed/etc.?

Can I move the directory a local Mercurial repository is contained in without breaking it, or does it know where it lives and expect it to live there forever? (Coming from SVN with its ...
6
votes
3answers
2k views

Mercurial convert filename encoding

I have Mercurial repositories running on Apache with mod_wsgi. Repositories have all filenames encoded in windows-1251. This encoding is used for historically reasons: they were converted to mercurial ...
6
votes
2answers
415 views

In Mercurial, how can I tie a bunch of commits to a single issue in our bugtracker?

We currently use svn and, through the user of hooks, are able to ensure that every commit message is prefixed by a bug-number (which ties those commits to a problem report in our Bugzilla issue ...
5
votes
3answers
600 views

Backup with Mercurial and Robocopy?

The Problem We would like to backup our critical files from several network shares to a removable hard drive. We want to automate the backup so we don't have to remember to run it. It needs to ...
5
votes
3answers
1k views

How to set up a Mercurial repo like BitBucket on a Linux machine?

I've been using for a while BitBucket as a repo. Now I'd like to set up my own repository and I'd like it to have similar functionalities (in particular I'd like to push, have some kind of web ...
5
votes
4answers
312 views

Mercurial repositories hosting with different user access levels

I want to set a few Mercurial 'central' repositories on one machine. There are few things I need to have working though: Each repository should have its own ACL, with different users allowed to ...
5
votes
1answer
87 views

Compliance in DVCS administration at an enterprise context, what to expect from a transition from a CVCS (Perforce)?

I work in a big multinational company as a software engineer and I'm currently holding a very nice conversation with IT and other developers with regards to adopting a DVCS (Mercurial and/or Git). ...
5
votes
1answer
925 views

Acessing a mercurial repository on a shared host over SSH

I have a shared hosting account with SSH access. I have set up a virtual Python installation and have copies of the system folders in $HOME: ~/bin, ~/lib ... I have installed mercurial through ...
4
votes
2answers
1k views

Will mercurial work properly with multiple users using a single working copy on a share

I'm looking for a solution where I can install version control in a corporate environment in the least intrusive way possible. One possible solution I was considering was getting mercurial set up on ...
4
votes
3answers
745 views

Setup mercurial over HTTP

Can you give some pointers to setup Mercurial over HTTP/HTTPS? I am setting up a development server (Debian), where i want to create a mercurial repository and push the changes to the server. I need ...
4
votes
1answer
6k views

How do you create an ssh key for the apache user on Redhat?

As the question asks, how do I generate an ssh key for the user apache on Redhat? My use case, is that we have a mercurial server running under the apache user. We also have several web servers ...
4
votes
3answers
3k views

Hosting multiple repositories, each with differing access control

We will need to host a series of Mercurial repositories. For security, we will use SSL encryption in Apache and htpasswd access (required). I tested out a single repository and used hgwebdir.cgi and ...
4
votes
4answers
375 views

Allowing Mercurial access but disallowing SSH

I've set up a Mercurial server on a Linux machine and it works fine. Users can, for example, push and pull to it using something like: hg push ssh://... Users can also ssh into the server. For ...
4
votes
2answers
165 views

Is it possible to keep the .hg directory in custom location

I want to have a Mercurial repository set, but instead of having the .hg/ directory under the repository tree, I would love to move it somewhere away (like to other partition) from working copy. Is ...
4
votes
1answer
1k views

Delay after commit before Redmine comments ticket

I was used to having a post-commit hook trigger processing of the commit message by Trac (SVN repository). The comment (or action) was added immediately. Now I switched to Mercurial as a VCS and ...
4
votes
1answer
512 views

How do I enable ZIP/TAR/BZ2 Download Buttons in my Mercurial HGWEB?

I recently got Mercurial running on my server, shared via Apache. When I browse to the repos via the web, I see a list of my repositories with Atom/RSS links, but no download buttons. My question ...
4
votes
3answers
606 views

Version Control and Backup, which combination?

I'm a sole developer and I have 3 computers. Plus a friend of mine has an account, but never uses it. My current setup is GIT + my own ad hoc backup job that clones the repository, zips it, gnupg it, ...
4
votes
2answers
634 views

Force specific usernames for Mercurial commits

We're switching from Subversion to Mercurial in our corporate environment. There will be a central repository that is accessible via HTTPS with basic HTTP authentication. Now I'm curious whether it's ...
4
votes
2answers
559 views

Serving mercurial on ubuntu 10.10

I've read an enormous amount of articles but I seem to sidetrack more and more the more I try. I'm trying to serve mercurial repos through HTTP. I'm using it together with redmine. I've installed ...
3
votes
3answers
1k views

Where is hgweb.cgi in the Mac OS X deployment of Mercurial?

I'd like to serve a CGI-based Mercurial repository from my OS X machine, but I cannot for the life of me find the hgweb.cgi file, which I assume is step 1 of the process. My Mercurial installation ...
3
votes
3answers
974 views

How to upload project with Mercurial on Google Code?

I have create a local directory, and made some sub-directories and file in it. registered by project on code.google.com/hosting install Mercurial and did hg init copied the auto-generated password ...
3
votes
2answers
467 views

Disabling command substitution in shell

I have an ssh box that runs Subversion and Mercurial services. On connection to this box, a script verifies that the user is only running mercurial or svn related commands: #!/bin/bash # ...
3
votes
3answers
808 views

How do you handle the default branch in Mercurial?

We've got a repository with two named branches in it: dev and production. There's also the default branch, which we aren't using. Unfortunately, whenever people clone the repository, it ...
3
votes
1answer
1k views

Mercurial set per user rights

I would like to set better user access to my mercurial repos trough the cgi web interface. This is my current hgweb.config : [web] contact = first.lastname description = HG Repos ...
3
votes
2answers
810 views

Read access control with Mercurial and Apache

I've set up Mercurial via Apache (hgwebdir.cgi). I would like to have the same functionality as when using Subversion and AuthzSVNAccessFile, in which I can restrict which user has read or write ...
3
votes
3answers
473 views

Implementing anonymous pull but verified-user push via HTTPS

Basically, how do I do it? Currently I've configured the Location in Apache to require SSL, use basic auth, and require valid-user. That's a bit much, as I want to allow anonymous pull, just require ...
3
votes
2answers
389 views

Large repositores (hg or git)

I'd like to use hg or git for repo with size in about 5gb. Are they work proper on repo with such a big size?
3
votes
2answers
159 views

hg pull from Bitbucket fails when run from cron

I have a local copy of a Bitbucket repo on one of my servers (under the user rob), and I created a script that runs every hour in cron and attempts to pull & update the local copy. The issue I'm ...
3
votes
1answer
197 views

Mercurial - anyway to make hg serve permanent?

Seems like everyday I have to SSH into our SME server and issue a "hg serve" command so that we can push/pull from/to it. Is there anyway for the mercurial server to stay on? I dont even know whats ...
3
votes
2answers
555 views

Mercurial simultaneous access

We have a Mercurial repository (the stable branch) on a mapped network drive (Windows). I want to know what happens if more than one user attempts to push at the same time. Or if someone pulls while ...
3
votes
1answer
1k views

NGINX basic auth only for POST

I'm settings up nginx to serve Mercurial repositories. It works when not using basic authentication at all, or when I use basic authentication all over. What I want to do is to just use basic auth on ...
3
votes
1answer
1k views

Installing Mercurial 1.5.1 on Debian Lenny

What's the easiest way to install Mercurial 1.5.1 on Debian Lenny? Can I safely install the package from the sid repository using apt-get, or should I compile it from the sources?
3
votes
2answers
190 views

How does mercurial-server handle requests

Background I'm currently using LShift's mercurial-server to host some mercurial repositories. It looks like the number of repositories as well as their size is expected to grow tremendously. To ...