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
1
vote
0 answers

hg-git push results in duplicate commit history

We recently took a repository we had in Mercurial and decided to migrate it to Bitbucket with Git. The initial conversion of HG default to Git master was successful. However, now I'm trying to migrate an old bug fix branch from the HG repo to the…
Frank Rosario
  • 2,512
  • 5
  • 31
  • 47
1
vote
2 answers

hg-git Installation: Missing dulwich.errors

I'm having trouble with hg-git. In my hgrc I have: [extensions] hgext.bookmarks= hggit=~/anaconda/lib/python3.5/site-packages/hg_gt-0.8.2-py3.5.egg/hggit When I try to hgclone I get: *** failed to import extension hggit from…
James Pinkerton
  • 161
  • 2
  • 14
1
vote
2 answers

Use hg commands to operate git and hg simultaneously

I have a mercurial repository and a git repository. Both are using the same code and same change-sets. When I make any changes to my hg repository, commit it and push it to hg repository, the same changes should get pushed to the git repository…
Nevin Raj Victor
  • 2,924
  • 3
  • 23
  • 37
1
vote
1 answer

Change upstream of local (hg-git) clone from (github) original to fork

I discovered an OSS project I've contributed to had moved to github. I installed hg-git and cloned a local repo from the git:// URL; then I made changes. I then realized I really wanted my own github fork, so I made one; but I haven't been able to…
Mike C
  • 1,224
  • 10
  • 26
1
vote
1 answer

Using hg-git, TortoiseHg and github over https gives 401

I'm using hg-git with TortoiseHg to try to push my existing repository to GitHub. I'm authenticating with HTTPS, rather than SSH. I added my username and password to TortoiseHg just like for BitBucket. But TortoiseHg says that the remove server…
Puppy
  • 144,682
  • 38
  • 256
  • 465
1
vote
1 answer

Cannot use hg-git or hg convert to convert a Git repository to Mercurial

I am trying to convert an existing git repository to mercurial, but am having no luck. I have already tried hg convert, but when I run hg convert as follows: hg convert --source-type git --dest-type hg file:///home/localalexa/GitProject/ I get the…
codewario
  • 19,553
  • 20
  • 90
  • 159
0
votes
0 answers

hg-git: `unknown revision` with one git clone, ok with another

Closed: I started a hg clone... by error in the git repository and this created an empty hg repository. So hggit checks the differences with the empty hg repo and not the git conversion. $ hg incoming -r branchname_bkm G1 comparing with…
mcourtois
  • 11
  • 2
0
votes
2 answers

Why is my git repository empty after using hggit to push my mercurial repository to it?

We have a very large Mercurial repository - about 11GB with approximately 130,000 commits. I am trying to convert it to git using the hggit extension of Mercurial, and I am having a strange experience. As a side note, I am doing this on Windows…
Nick Hodges
  • 16,902
  • 11
  • 68
  • 130
0
votes
2 answers

How do I remove hg-git entirely from Ubuntu 18.04.2

When using mbed-cli to update an Mbed repo, I get the following error: john@john-ThinkPad-Yoga-11e:~/Projects/myRepo$ mbed update [mbed] Working path "/home/john/Projects/myRepo" (program) [mbed] Updating program "myRepo" to latest revision in the…
J Greene
  • 115
  • 1
  • 9
0
votes
1 answer

Converted hg to git, but get errors using the git repo (SourceTree)?

I have converted a mercurial repo to a git repo by using hg-git (like this : How to convert mercurial repository to git repository without losing branches?). Now I have both .git and .hg folders now but I should not need to .hg folder. But if I…
eagle
  • 451
  • 1
  • 7
  • 27
0
votes
0 answers

GitHub won't accept this old commit. How do I fix it?

I am in the process of converting a Mercurial repository to Git, to be hosted on GitHub. The conversion with hggit seemingly went well, but trying to push to GitHub failed: remote: error: object 27124f1fc9f51aed184f61c33dc9073f64bf95ba:…
Ola Eldøy
  • 5,720
  • 7
  • 49
  • 82
0
votes
1 answer

pulling git repo with mercurial fails with error "path contains illegal component .hg/00changelog.i"

I have a project versioned with git and our client wants to access it with Mercurial, so our idea was to convert the project using the plugin “hg-git”. The error is thrown when cloning the "converted" repository with a hg command following these…
Pierre
  • 3
  • 3
0
votes
1 answer

Maintaining Git Fork of Hg Repository with Patches

I am maintaining a git fork of an hg repository with some additional patches. What this means is that I have cloned the hg repository and then pushed that repository to a git repository following these directions. I then cloned the git repository,…
Alex Rothberg
  • 10,243
  • 13
  • 60
  • 120
0
votes
1 answer

How do I rebase from upstream mercurial into a git fork?

The python library suds can't seem to find a stable maintainer, and the few that have picked up the slack don't seem to agree on a common VCS. There are plenty of guides on how to do various things between git and hg, however most of them seem to…
Stephen Fuhry
  • 12,624
  • 6
  • 56
  • 55
0
votes
1 answer

Hg-git - No module named ordereddict

I think I have installed Hg-Git correctly however when I try to push to a Git server it throws this error: No module named ordereddict What is the cause of this error, and how do I fix it?
quarks
  • 33,478
  • 73
  • 290
  • 513