Skip to contentSkip to conversation

Announcing git-cinnabar 0.2.0

DISCUSSION Mike Hommey 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

Git-cinnabar is a git remote helper to interact with mercurial repositories. It allows to clone, pull and push from/to mercurial remote repositories, using git.

Code on https://github.com/glandium/git-cinnabar

[ Previous announcements:
http://marc.info/?l=git&m=142364715001983
http://marc.info/?l=git&m=141781485726430 ]

What's new since 0.1.1?

- git cinnabar git2hg and git cinnabar hg2git commands that allow to translate (possibly abbreviated) git sha1s to mercurial sha1s and vice-versa.
- A "native" helper that makes some operations faster. It is not required for git-cinnabar to work, but it can improve performance significantly. Check the Setup instructions in the README file.
- Do not store mercurial metadata when pushing to non-publishing repositories.
- Made the discovery phase of pushes require less round trips (the phase that finds what is common between the local and remote repositories), hopefully making pushing faster.
- Improved logging, which now doesn’t require fiddling with the code to get extra logging.
- Made fsck validate more things, and act on more errors.
- Fixed a few edge cases.
- Better handle files with weird names, and that git quotes in its output.
- Extensively tested on the following repositories:

    https://hg.mozilla.org/mozilla-central/
    https://hg.mozilla.org/releases/mozilla-beta/
    https://selenic.com/hg/
    https://bitbucket.org/durin42/hg-git/
    https://hg.python.org/cpython/

What to expect next?

- Allow to push merge commits.
- Improve memory footprint for pushes (currently, it’s fairly catastrophic on big repositories ; don’t try to push multiple hundreds of commits of a Mozilla-sized repository if you don’t have multiple gigabytes of memory available).
- As mentioned above, allow to remove some metadata.
- And more...

If you want to follow the improvements more closely, I encourage you to switch to the next branch. I won’t push anything there that hasn’t been extensively tested on the above mentioned repositories.

And as always, please report any issue you run into:
https://github.com/glandium/git-cinnabar/issues/new

Mike