Questions tagged [hg-git]

A tool for communicating changes between mercurial and git.

hg-git is a tool for communicating changes between hg and git.

If you want to use hg to communicate with GitHub, then this is the tool for you.

78 questions
6
votes
4 answers

TotoiseHG: An existing connection was forcibly closed by the remote host

I wanted to push a project from from TortoiseHg to GitHub. I know that, TortoiseHg is a front-end to the Mercurial distributed version control system; where GitHub works with Git. But I love to use TortoiseHg (instead of TortoiseGit or GitGui), and…
Minhas Kamal
  • 20,752
  • 7
  • 62
  • 64
6
votes
3 answers

hg-git repository not found

I would like to configure my Mercurial project to be able to push it into gitHub repository. While using command: hg push git+ssh://git@github.com/myusername/myproject.git I receive a msg: abort: repository…
Malvinka
  • 1,185
  • 1
  • 15
  • 36
6
votes
2 answers

Using git-remote-hg on windows

According to this answer https://stackoverflow.com/a/13354944/867294 it should be fairly easy to set up git to work with mercurial "no dependencies or anything". This doesn't seem to work all that smooth on Windows tough. I tried to follow this…
Willem D'Haeseleer
  • 19,661
  • 9
  • 66
  • 99
5
votes
3 answers

How to import a Bitbucket project into Github on Windows

I have a HG project hosted on Bitbucket, and I want to move it to Github. I have followed the guideline here to install hg-git extension, on my TortoiseHG. I have created a repository on Github, but have not initialized it yet (it displays that…
lulalala
  • 17,572
  • 15
  • 110
  • 169
5
votes
1 answer

Mercurial -> Git migration with preserving commit hashes

Is there any existing tool that is able to export a mercurial repository to a git repository while preserving the commit hashes? I'm aware of hg-git or fast-export.git, but those create new commits with new hashes (and there doesn't seem to be any…
Jan
  • 1,905
  • 17
  • 41
5
votes
1 answer

Hg-Git: How to push to both Github and Bitbucket?

I just installed Hg-Git and I was wondering if it is possible to push to both Bitbucket.org and Github.com from the same repository. I'm thinking of something like: $ #make commits $ hg push #pushes to Bitbucket since it is set as `default` in…
john2x
  • 22,546
  • 16
  • 57
  • 95
4
votes
2 answers

How to check if the installed Mercurial (hg) is using Python2 or Python3?

I wanted to install the hg-git extension with python pip but I'm not sure if I should use pip (Python2) or pip3 (Python3). hg version gives this: $ hg version Mercurial Distributed SCM (version 4.8.2) (see https://mercurial-scm.org for more…
pynexj
  • 19,215
  • 5
  • 38
  • 56
4
votes
2 answers

hggit doesn't export unmerged branches

I'm using hggit to export our mercurial repository to git. I'm following the tutorial here: http://arr.gr/blog/2011/10/bitbucket-converting-hg-repositories-to-git/ This however misses all branches that were not merged into default. I guess it's…
Jan
  • 1,905
  • 17
  • 41
4
votes
2 answers

Cloning git repository from http URL with tortoisehg

I have TortoiseHg with the hg-git extension installed. I know it is working as I can clone repositories from github using hg clone git://github.com/foo/bar.git However, I am trying to clone a repository located at…
Mark Heath
  • 48,273
  • 29
  • 137
  • 194
4
votes
2 answers

How to link a folder with an existing Heroku app with mercurial

I have an existing Django app on Bitbucket and I'm able to deploy to Heroku whith hg-git. Whenever i want to run some heroku command inside my app folder i get the following errors: $ heroku ps ! No app specified. ! Run this command from an…
Maxime R.
  • 9,621
  • 7
  • 53
  • 59
3
votes
1 answer

Convert git repo to mercurial repo

I was working on a git repository and now I need to convert it to a hg repository for some reason. My original git repository has 41 commits and had a size of 320MB. I am trying to convert the repository using hg convert git-repo hg-repo. This…
prathmesh.kallurkar
  • 5,468
  • 8
  • 39
  • 50
3
votes
1 answer

Hg-Git and the Current Version (2) of Mercurial?

Any compatibility or stability issues with using Hg-Git with version 2 of Mercurial? I am tempted to use Hg-Git to allow me to use Hg but use Github as my repository. Most web chatter about both seems to be about earlier versions. Any current…
haziz
  • 12,994
  • 16
  • 54
  • 75
3
votes
2 answers

Interoperability of Mercurial 6 with other VCSes

Some years ago, Mercurial | TortoiseHG could exchange data bidirectionally easy with at least 2 Big Brothers: Subversion, using HGSubversion Git, using HG-Git Current (6.0 versions of family) state - the ordinary users have none: hg-subversion is…
Lazy Badger
  • 94,711
  • 9
  • 78
  • 110
3
votes
2 answers

Problem with loading hggit extension in TortoiseHG

I'm trying to get the hggit extension to work under Windows 7 (64bit) using TortoiseHG (2.1.2). I followed the official setup instructions, i.e. cloning the hg-git repository and adding the "hggit = ..." line to the extensions section in my…
3
votes
1 answer

How to convert mercurial repository to git repository without losing branches?

I want to convert mercurial repo to git repo. Actually I did but I didnt see branches. After I converted repo I can see just one branch(as master) I cannot see any other branches but I can see history(all changes) as right. when clicked any commits…
eagle
  • 451
  • 1
  • 7
  • 27