git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[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
Next: Felipe Contreras
Message 1 of 9 in “New remote-hg helper”
  1. 0/6 New remote-hg helperFelipe Contreras, Oct 21, 2012
  2. 1/6 Add new remote-hg transport helperFelipe Contreras, Oct 21, 2012
  3. 2/6 remote-hg: add support for pushingFelipe Contreras, Oct 21, 2012
  4. 3/6 remote-hg: add support for remote pushingFelipe Contreras, Oct 21, 2012
  5. 4/6 remote-hg: add support for trivial featuresFelipe Contreras, Oct 21, 2012
  6. 5/6 tests: add remote-hg testsFelipe Contreras, Oct 21, 2012
  7. Sverre RabbelierOct 21, 2012
  8. Felipe ContrerasOct 24, 2012
  9. 6/6 tests: fix remote-hg warnings for modern gitFelipe Contreras, Oct 21, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.