mercurial

"ERROR:root:code for hash md5 was not found" when using any hg mercurial commands

"ERROR:root:code for hash md5 was not found" when using any hg mercurial commands Question: When trying to use any hg Mercurial commands on the console, I keep getting this error. I installed Python using Homebrew and I am running Mac OS Catalina v. 10.15.1. Any reference would be appreciated. Here is the error I’m getting: …

Total answers: 15

How to point pip at a Mercurial branch?

How to point pip at a Mercurial branch? Question: I’m trying to install my application via pip to a virtualenv for testing. Works fine for installing the default or tip like so: pip install -e hg+https://[email protected]/username/app_name#egg=app_name But is there any way to point to a branch, rather than just getting the tip. Not sure if …

Total answers: 1

Virtualenv and source version control

Virtualenv and source version control Question: I recently started a Django project and I quickly realized that virtualenv will be really useful for many reasons. I set up the virtualenv and my project, but now I wonder what file I should add to my source control (in my case, Mercurial). Should I add all the …

Total answers: 2

Mercurial error *** failed to import extension hggit: No module named hggit

Mercurial error *** failed to import extension hggit: No module named hggit Question: I installed Mercurial on my Mac, and it’s wonderful. For me it’s easier to grasp than Git so I wanted to use it to manage git-repositories. Therefore I installed hg-git with the following instructions: http://hg-git.github.com/ However, each time I issue a hg …

Total answers: 7

How to rename a directory in Mercurial and continue to track all file changes

How to rename a directory in Mercurial and continue to track all file changes Question: I decided to rename some directories in my home/hobby Python package (doc to docs, test to tests, util to utils) because, now that I’ve thought more about it, I think the new names are more appropriate. My general thinking now …

Total answers: 3

How do I correctly install dulwich to get hg-git working on Windows?

How do I correctly install dulwich to get hg-git working on Windows? Question: I’m trying to use the hg-git Mercurial extension on Windows (Windows 7 64-bit, to be specific). I have Mercurial and Git installed. I have Python 2.5 (32-bit) installed. I followed the instructions on http://hg-git.github.com/ to install the extension. The initial easy_install failed …

Total answers: 11

Mercurial scripting with python

Mercurial scripting with python Question: I am trying to get the mercurial revision number/id (it’s a hash not a number) programmatically in python. The reason is that I want to add it to the css/js files on our website like so: <link rel="stylesheet" href="example.css?{% mercurial_revision "example.css" %}" /> So that whenever a change is made …

Total answers: 7