• Home
    • View
    • Login
    This page
    • Normal
    • Export PDF
    • Export Word
    • Attachments
    • Page Information

    Loading...
  1. Dashboard
  2. Skara
  3. Skara
  4. CLI Tools
  5. git-translate

git-translate

  • Created by Erik Helin, last modified on Sep 05, 2020

Description

git-translate can translate Mercurial hashes to Git hashes (and vice-versa) for OpenJDK repositories that have been converted from Mercurial to Git. Note that git-translate relies on the presence of a map file, which by default is the file .hgcommits in the root of a Git repository.

Usage

$ git translate -h
usage: git-translate [options] <REV>
            --map FILE     File with commit mapping (defaults to .hgcommits)
            --to-hg REV    Translate from git to hg
            --from-hg REV  Translate from hg to git
            --verbose      Turn on verbose output
            --debug        Turn on debugging output
            --version      Print the version of this tool
        -h, --help         Show this help text

Examples

Show the hash for the Mercurial commit that a Git commit was converted from:

$ git translate --to-hg 1e4f886107c3108655fa32f1ba74abbc64ccbc42
4549a3e87a2577957f824e5228873ba6bffb2ac9


Show the hash for the Git commit that a Mercurial commit was converted to:

$ git translate --from-hg 4549a3e87a2577957f824e5228873ba6bffb2ac9
1e4f886107c3108655fa32f1ba74abbc64ccbc42

Source

See GitTranslate.java.

Overview
Content Tools
ThemeBuilder
  • No labels

Terms of Use
• License: GPLv2
• Privacy • Trademarks • Contact Us

Powered by a free Atlassian Confluence Open Source Project License granted to https://www.atlassian.com/software/views/opensource-community-additional-license-offer. Evaluate Confluence today.

  • Kolekti ThemeBuilder Powered by Atlassian Confluence 8.5.21
  • Kolekti ThemeBuilder printed.by.atlassian.confluence
  • Report a bug
  • Atlassian News
Atlassian
Kolekti ThemeBuilder EngineAtlassian Confluence
{"serverDuration": 419, "requestCorrelationId": "abe23986d16fe8c7"}