[PATCH v3 0/6] New remote-hg helper
- From
Felipe Contreras <felipe.contreras@gmail.com>
- Date
- Oct 21, 2012, 17:48 UTC
- Message-ID
- <1350841744-21564-1-git-send-email-felipe.contreras@gmail.com>
I've looked at many hg<->git tools and none satisfy me. Too complicated, or too slow, or to difficult to setup, etc.
The only one I've liked so far is hg-fast-export[1], which is indeed fast, relatively simple, and relatively easy to use. But it's not properly maintained any more.
So, I decided to write my own from scratch, using hg-fast-export as inspiration, and voila.
This one doesn't have any dependencies, just put it into your $PATH, and you can clone and fetch hg repositories. More importantly to me; the code is simple, and easy to maintain.
One important remote-hg alternative is the one written by Sverre Rabbelier that is now maintained and distributed in msysgit, however, in my opinion the code is bloated, and there isn't even a standalone branch to take a look at the patches, and give them a try.
This version has some features that Sverre's version doesn't:
* Support for tags * Support to specify branches to pull
Sverre's version has some features this one doesn't:
* Support for octopus merges
[1] http://repo.or.cz/w/fast-export.git
Changes since v2:
* Added support for pushing * Tests copied from original remote-hg * Custom default -> master renames removed * Code reorganized
Changes since v1:
* Improved documentation * Use more common 'python' binary * Warn, don't barf when a branch has multiple heads * Fixed marks to fetch after cloned * Support for cloning/pulling remote repositories * Use a more appropriate internal directory (e.g. .git/hg/origin) * Fixes for python3
Felipe Contreras (6): Add new remote-hg transport helper remote-hg: add support for pushing remote-hg: add support for remote pushing remote-hg: add support for trivial features tests: add remote-hg tests tests: fix remote-hg warnings for modern git
contrib/remote-hg/git-remote-hg | 489 ++++++++++++++++++++++++++++++++++++++++ t/t5801-remote-hg.sh | 143 ++++++++++++ 2 files changed, 632 insertions(+) create mode 100755 contrib/remote-hg/git-remote-hg create mode 100755 t/t5801-remote-hg.sh
-- 1.8.0.rc2.7.g0961fdf.dirty