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.

35 questions
9
votes
1 answer

Get 'python-keyring' to stop prompting for 'encrypted keyring' password

Situation: I followed these instructions for setting up the mercurial keyring extension. On an Ubuntu 12.04.4 (precise) machine, it works perfectly following the instructions. Prompted for a password once, and now I can 'hg pull'/'hg clone' etc…
user2716766
  • 101
  • 4
7
votes
3 answers

Tab-completion for Mercurial in Bash?

Using Subversion on the command-line, it intelligently tab-completes available subcommands, etc: $ svn c cat checkout cl co copy changelist ci cleanup commit cp Mercurial, on the other…
Jonik
  • 1,460
  • 3
  • 13
  • 17
6
votes
2 answers

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 permissions and users can't access them. The issue…
Budric
  • 113
  • 6
6
votes
1 answer

hg log timezone formatting

For hg, I can set formatting with --template key to output only date, like this: > hg log -l1 --template "{date(date, '%Y-%m-%d %H:%M:%S')}\n" 2016-10-07 10:22:41 I can use %z control to output timezone offset: > hg log -l1 --template…
FunkyCat
  • 171
  • 8
5
votes
1 answer

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, find SSL finger print has changed, update fingerprint……
5
votes
1 answer

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 changesets transaction abort! rollback completed abort:…
vimdude
  • 415
  • 2
  • 8
4
votes
2 answers

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, the output of hg diff on /var/log/dmesg is pretty…
Kev
  • 1,729
  • 4
  • 27
  • 47
4
votes
1 answer

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. However, I'd like to follow best practices to the…
Faheem Mitha
  • 34,649
  • 32
  • 119
  • 183
4
votes
1 answer

Inside less, is there an equivalent of ctrl-Z to recover the pager prompt?

I will occasionally use the pickaxe functionality of git to locate changes of interest. This can be quite slow, obviously (the same would apply to, say, hg grep), but more significantly it is bursty: a few results clumped together, separated by…
4
votes
2 answers

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 or web.cacerts config setting) searching for…
Mohammad Efazati
  • 792
  • 8
  • 16
3
votes
1 answer

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

I created a public key for ssh and registered that key with BitBucket. I then attempted to push: $ hg push ssh://[email protected]/johncharrell/[project name] pushing to ssh://[email protected]/johncharrell/[project name running ssh…
Christos Hayward
  • 529
  • 1
  • 6
  • 17
3
votes
1 answer

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 = python:tracext.hg.hooks.add_changesets as per the…
Mel Boyce
  • 349
  • 1
  • 6
3
votes
1 answer

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 mercurial-hgk_1.8.1-1.elf5.x86_64.rpm by rpm and it…
Cassie
  • 221
  • 1
  • 3
  • 6
3
votes
2 answers

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 started to fail, seemingly due to lacking rights…
haraldkl
  • 133
  • 4
3
votes
1 answer

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 http://bitbucket.org/[username]/[repository] That made a [repository] directory. I copied…
n0pe
  • 9,411
  • 13
  • 60
  • 108
1
2 3