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

learn more… | top users | synonyms

3
votes
2answers
151 views

using modified file content as arguments

In a script I'd like to purge a mercurial repository but be able to retain a number of (configurable) file patterns which I read from $FILENAME. The syntax for the hg command is hg purge --all ...
1
vote
1answer
182 views

How does ssh pick which key to use?

I'm using the following as a forced command with hg-ssh. This forced command is designed to just allow pushes with hg. However, I must be doing something wrong, because I can actually log in with ...
4
votes
2answers
325 views

Why and how to track /var/log/dmesg with version control

On this wiki they recommend tracking /var/log/dmesg using Mercurial. I wanted to set up a cron job on CentOS 6.4 like on this page to remind myself to make commit messages for such a repo. However, ...
1
vote
1answer
82 views

HGRCPATH kept in /etc/sudoers, yet ignored by hg?

I'm trying to follow the directions here under "sudo and multiple users". I believe I managed to modify /etc/sudoers correctly enough (by adding Defaults :me env_keep += "HGRCPATH" at the beginning ...
3
votes
1answer
232 views

Best practices for packaging self created software for Debian

I've got Debian packaging for a piece of software I've written. This software probably is too specialized to be part of Debian. In any case, for now I have no plans to try to include it in Debian. ...
1
vote
1answer
284 views

I quite like mercurial .hgignore-style globbing. Is there a Linux shell that supports it?

I quite like mercurial .hgignore-style pattern globbing. Globs are rooted at the current directory; a glob such as *.c will only match files in the current directory ending with .c. The ...
1
vote
2answers
55 views

Better string escaping for hg

So periodically I remove files that are listed as missing by the version control system hg. What I've noticed is that this (admittedly ugly) script I have does not properly escape strings: hg status ...
1
vote
1answer
142 views

Filter / select folders using wildcards

For my mecurial ignore file I want to select all the folders that start with dataset in my project folder with with one 'glob statement'. Example project folder: my_project_folder/ dataset1/ ...
3
votes
1answer
420 views

How do I push a Mercurial repository to BitBucket over ssh? [closed]

I created a public key for ssh and registered that key with BitBucket. I then attempted to push: $ hg push ssh://jhayward@bitbucket.org/johncharrell/[project name] pushing to ...
3
votes
1answer
168 views

ZSH, vcs_info, Mercurial, and Trac: weird branch and revision

I'm using zsh with vcs_info and it works nicely except when browsing a repo which is set up for Trac/Mercurial. Specifically, the hgrc for the repo has the following line in [hooks]: changegroup = ...
5
votes
1answer
351 views

vim.googlecode.com SSL certificate change

I am building vim from source and keep having to update the SSL hostfingerprints of my ~/.hgrc file. It's getting a little silly and large – see below. The pattern is the same: run update, ...
5
votes
2answers
507 views

Mercurial (hg) not respecting default ACL settings

I'm trying to set fine grained access control to various mercurial repositories using ACL. When I push changes to repository any new files created under /myrepo/.hg/store/data do not have default ...
3
votes
1answer
1k views

How can I add a certificate to Mercurial?

I use Arch Linux, when I want to clone a project from bitbucket with mercurial I get this error: warning: bitbucket.org certificate with fingerprint 24:...:3b not verified (check hostfingerprints ...
5
votes
1answer
185 views

GlusterFS & Mercurial don't like each other

I did setup GlusterFS but when I mounted the directory on the client and did hg clone myrepo myrepo in that mounted directory, it's giving the following error: requesting all changes adding ...
3
votes
1answer
472 views

How to get hgk working on RedHat Linux?

I plan to get hgk to work.However, no matter how I configure the redhat linux, it still does not have any response. Here is information for my machine. RedHat 5.3 Mercurial 1.8.1-1 I installed ...
1
vote
0answers
428 views

How do I install hgview on Ubuntu?

I'm trying to install hgview on Ubuntu, but it's not working. $ hg version Mercurial Distributed SCM (version 2.1) (see http://mercurial.selenic.com for more information) Copyright (C) 2005-2012 ...
3
votes
2answers
475 views

How to change file permissions for newly generated files in largefiles directory of Mercurial?

I got some Mercurial repositories which are served by Apache over HTTP. But there is a dedicated user performing some automated tests, which needs to check out the repositories locally. Recently this ...
1
vote
2answers
226 views

Generate a list of files from a file containing a series of globbing patterns

I am looking for a way to build a list of files by parsing a file that contains a sequence of zsh globbing patterns. The final goal is to pass this list of files to hg add in mercurial. For those ...
2
votes
1answer
1k views

How to fully sync local repository using Mercurial (bitbucket)

I'm new to VCS and I decided to give Mercurial a try. I signed up for bitbucket and created some repositories. The I created /home/max/hgrepo/ and ran hg clone ...
1
vote
1answer
297 views

restricting pushes to selected Mercurial repositories using `ssh` forced commands and `hg-ssh`

The context of this question is the hg-ssh script. It is helpful but not critical to know something about Mercurial. This script sets up a forced command using public keys so the given public key ...
6
votes
3answers
1k views

Tab-completion for Mercurial in Bash?

Using Subversion on the command-line, it intelligently tab-completes available subcommands, etc: $ svn c<tab> cat checkout cl co copy changelist ci ...