-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Transfer the githashes to the mercurial repository (locally) #92
Comments
Neither does This information is not stored in the hg repository anywhere. If you clone this repository again, that information is not visible. You would need to request to the developers of |
Hi I run some tests and have a proposal to make I run some experiments I am describing below, and in a nutshell I would like to ask/suggest if the git-hg-remote converter could generate a git-mapfile (whose syntax I describe below) based on the files git-hg-remote already generated namely marks-git and marks-hg I don't posses enough python knowledge to even try to do this. Notationhg-gitA repository that will be generated, or cloned by hg-git will take the prefix hg-git git-hg-remoteA repository that will be generated, or cloned by git-hg-remote will take the prefix git-hg-remote A public very simple repository at gitlabhttps://gitlab.com/kalthad/named-branch-only Clone with gitcheck the git branches
Start an empty local hg repository
configure git-hg-remoteSet up the mercurial remote
Push only if switched to
Try to generate a git-mapfile based on marks-git marks-hgorginal git-mapfile (when cloning with hg-git or generating and pushing with hg-git
Where
marks git
marks hg
Generate the git-mapfileImportant is the relation not the order it seems | 2 | eadba3450656ceef32fe09323799657648e7d870 | 2 | ca177dfb0ce7cff95fd0707f3b26f923c2edd370 | Resulteadba3450656ceef32fe09323799657648e7d870 ca177dfb0ce7cff95fd0707f3b26f923c2edd370 ed1206f14ed48a17d00b56403c99dca74d10f575 83d3589bf47eb299fa103ba834bc390e41ba5678 248de8768d4fd9067392bad7a90535a9fda39e2c d4a11b708308f69be2d2ce39f7b0bdc50657d9e6 11b965e2ce5481d8b0d7cc88100cd768d054ce0e ed51df2fef5e24132ea194899d2204032c291581 6bbbf2e4d4f271ebf058dca4ed5d0632051675ff 351bc15959f5c15ff58e3d678689397b5b226c35 57576cb5b70c597cea9576e266101af6778e9dcb 5a853b1b8099f006945ed16da4879debbe1e1683 420192f6f3109a7c8ae2a09980b11e4f862c59d2 833ed1dd48c52c5abd9ec5788ecc64931de22eef c8ea5013c9c0401903d89d6b403a1d744594bade a781344b9ba14647f95555e84bf38b49a627f24c add the hgrc file and the git subdirectorySource: hg-git-named-branch-only/.hg/hgrcSource: hg-git-named-branch-only/.hg/gitTarget git-hg-remote-named-branch-only/.hgNow add a commit and push from git-hg-remote-named-branch-only to remoteMerge and push from git-hg-remote-named-branch-only to remotePull from git and then add a commit push the to local git-hg-remote-named-branch-onlyEverything seems to work fine So any change to add the functionality to generate the git-mapfile that could one use, obviously at one own's risk, together with hg-git to push directly to the remote git repository? Thanks |
Hi
I am a mercurial user, who clones git repository to my machine and then use your converter to generate
the corresponding mercurial repositories (with named branches), work and would then to push to the remote git
server via hg-git.
That however currently is not possible since your converter does not transfer the git hashes to the (local) mercurial repository.
Is there any change that you might consider implementing such a feature?
I don't know enough git and python to try this even. I will rise this question also on the hg-git mailing list
regards
Uwe Brauer
The text was updated successfully, but these errors were encountered: