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