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
2
votes
2 answers

Mercurial: Back out public changesets and reapply to new public branch?

We're using Kiln and Fogbugz; Kiln is supposed to seamlessly allow git and hg to work together. However, we've run into an issue where git branches are treated like bookmarks in mercurial; we didn't catch this in our repo until changes had been…
user677526
2
votes
2 answers

Deploy Mercurial master branch to Heroku

I've been deploying my hg repo to Heroku using hg-git for a few months, but it's stopped working recently. 0 HAL:0 work/nrb % hg push git+ssh://git@heroku.com:nrb.git pushing to git+ssh://git@heroku.com:nrb.git/ exporting hg objects to…
Dean Brundage
  • 2,038
  • 18
  • 31
2
votes
1 answer

How do I clone/pull from GitHub, but push to Kiln?

I don't necessarily have a preference for either Git or Mercurial. I have both of them installed and find them equally difficult to get my head around. I mainly use Mercurial because our repositories live in Kiln. I just cloned a project from GitHub…
ATL_DEV
  • 9,256
  • 11
  • 60
  • 102
2
votes
1 answer

Is there a way to make hg-git's push faster?

When using hg-git to push to a remote repository (using git+ssh://-protocol), it takes 10 minutes (and more) for one commit with a one-line change of a small file. The command I'm executing is: hg push -B hg-experiments Is there some more efficient…
mstrap
  • 16,808
  • 10
  • 56
  • 86
1
vote
2 answers

hg-git deploy to heroku from Lion

I have this application on my Lion machine that is in a mercurial repository so I'm using hg-git to deploy it to heroku. ~/.hgrc [extensions] hgext.bookmarks = hggit = .../project/.hg/hgrc [paths] default =…
fiestacasey
  • 627
  • 1
  • 5
  • 10
1
vote
1 answer

Error converting Hg repo to Git: 'no match found'

I'm trying to follow various other answers for converting .hg to .git. When I run hg gexport --debug I get an error on a revision saying abort: data/web/Server/Properties/PublishProfiles/Web Deploy.pubxml@842a35fd10b511e515bfdf83c67300102000a187:…
Brad
  • 11,934
  • 4
  • 45
  • 73
1
vote
1 answer

Convert mercurial branches into bookmarks while migrating to git

I am trying to migrate a mercurial repo to git while using hg-git. I follow the tutorial here and I stumbled on an issue in the migration step when I push to the git repo. Some branches (who where converted to bookmarks) aren't migrated because they…
Zavulon
  • 121
  • 8
1
vote
1 answer

What parts of the hg-git metadata state do I need to back up in order to start over?

This is currently a purely theoretical question (related to this one), but let me first give the background. Whenever you run hg gexport the initial hash will vary from invocation to invocation. This is similar to when you run git init or hg init.…
0xC0000022L
  • 20,597
  • 9
  • 86
  • 152
1
vote
1 answer

How can I work in my repo using Git, and push to a Mercurial repo?

I installed hg-git, and I clone my github repository using it: $ hg clone git+ssh://git@github.com/my/repo.git $ git status fatal: This operation must be run in a work tree $ hg gexport ( now the .git is created ) $ git status fatal: This operation…
Geo
  • 93,257
  • 117
  • 344
  • 520
1
vote
1 answer

HG-Git: AttributeError: 'bytes' object has no attribute 'encode'

I'm trying to clone a git repository with mercurial and hg-git, but an AttributeError keeps coming up. When I run hg clone git://github.com/michaelfm1211/simpleserve, the output I get is this: destination directory: simpleserve ** unknown exception…
Michael M.
  • 10,486
  • 9
  • 18
  • 34
1
vote
1 answer

How to map hg changeset with git changeset after converting?

I converted my repositories from Mercurial to Git (pulled from Bitbucket(hg, Mercurial), pushed to GitLab (git)), I found that after converting from hg to git, in GitLab now, the changeset number has been changed. I am wondering that how can I map…
Jennifer Zou
  • 187
  • 1
  • 1
  • 12
1
vote
2 answers

How to solve ssh crash when pushing from mercurial?

I'm trying to help a friend to migrate a mercurial repo to a git one. Unfortunately i never worked with this... The configuration is : -Win 2012 server R2 -Mercurial 5.3.1 -Python 2.7 -dulwich 0.19.13 -hg-git 0.8.13 -openSSH 3.8.1p1 The hgrc file…
Garbez François
  • 327
  • 3
  • 13
1
vote
1 answer

How do I push all my mercurial branches and tags using the hggit extension?

I am trying to convert my mercurial repository to git using the hggit extension. As far as I can tell, it pushes everything over into one branch and one branch only. How do I push over all my branches and tags using this extension?
Nick Hodges
  • 16,902
  • 11
  • 68
  • 130
1
vote
2 answers

How can I remove or fix a Mercurial tag that starts with a double quote?

I am trying to use hggit to migrate a very large repository from Mercurial to Git. It is failing because we have, in the bowels of our hg repository, a tag named precisely like this: "_5.3.0.307 That double-quote is there at the beginning. It…
Nick Hodges
  • 16,902
  • 11
  • 68
  • 130
1
vote
1 answer

How do I install the hg-git plugin on Debian Stretch?

Debian Jessie, as well as sid, have a mercurial-git package which contains the hg-git plugin. However, this package was (auto-)removed from Debian Stretch to to a release-critical bug. But - I need it installed and running. Surely this should be…