Installing Hg-Git on Windows 7 64bit
Asked Answered
H

3

16

I am trying for a while installing Hg-Git addon to my Windows 7 Operating system

  1. I have crossed several difficulties like installing Python and other utilities described in this blog.

  2. I had even after this manual problems and could not install this addon because of errors described in this log.

  3. I searched google and I have found this manual

  4. Now i have these errors showed in this log.

Any help with these errors? Thank you for your help.

Hypertensive answered 3/1, 2011 at 15:34 Comment(0)
H
12

Ok i got it so ... For others - you need to clone this repo

HTTPS:

git clone https://github.com/jelmer/dulwich.git

SSH:

git clone [email protected]:jelmer/dulwich.git

or just download source - after that you need to go to its folder when you downloaded in command line type:

python setup.py install

You are done after you can simply do:

easy_install hg-git

On windows and make it work - so congratulations :-) Close.

Hypertensive answered 6/1, 2011 at 1:55 Comment(2)
'easy_install' is not recognized as an internal or external command, operable program or batch file.Sites
You will need Microsoft Visual C++ Compiler for Python 2.7 is not installed already.Cake
C
26

In case it helps anyone, I have Windows 7 64bit and TortoiseHg and following their instructions was easy and worked without issue.

Installation

TortoiseHg Windows installers come with the python-git bindings (named dulwich) that hg-git requires, so one only needs to clone the hg-git repository to your local computer:

hg clone http://bitbucket.org/durin42/hg-git/ C:\hg-git

Then enable hggit and bookmarks in your Mercurial.ini file:

[extensions]

bookmarks =

hggit = C:\hg-git\hggit

You can verify that worked by typing hg help hggit

Canberra answered 7/1, 2012 at 15:23 Comment(2)
You can find Mercurial.ini file in %USERPROFILE% folder.Ginetteginevra
Hg-Git has moved location (since BitBucket deleted all their users Hg repos!) - try this instead: hg clone https://foss.heptapod.net/mercurial/hg-git C:\hg-gitLeighleigha
H
12

Ok i got it so ... For others - you need to clone this repo

HTTPS:

git clone https://github.com/jelmer/dulwich.git

SSH:

git clone [email protected]:jelmer/dulwich.git

or just download source - after that you need to go to its folder when you downloaded in command line type:

python setup.py install

You are done after you can simply do:

easy_install hg-git

On windows and make it work - so congratulations :-) Close.

Hypertensive answered 6/1, 2011 at 1:55 Comment(2)
'easy_install' is not recognized as an internal or external command, operable program or batch file.Sites
You will need Microsoft Visual C++ Compiler for Python 2.7 is not installed already.Cake
B
0

I created a powershell script which does the installation in one step. The prereq is you have some build tools and python already installed: http://ig2600.blogspot.com/2013/02/using-git-via-hg-on-windows.html

Babysit answered 3/8, 2013 at 16:48 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.