GitXplorerGitXplorer
G

vcs-rosetta

public
1 stars
1 forks
0 issues

Commits

List of commits on branch master.
Unverified
60e278867110c23c9234acec569d438c60be99bb

Version bump

committed 7 years ago
Unverified
2449e90ad2adb8e0cacee51f7d617cd0f6157b40

Fixed yaml parsing error

committed 7 years ago
Unverified
4269346057eb099df47ce964e463c31390eb7aa2

Added usage info to hg2 script

committed 7 years ago
Unverified
b106fb4820afc2e7aaa903a9fe2271ecfb262ada

Fixed Flake8 errors

committed 7 years ago
Unverified
5e7654e973a2f1f5c2fc0132f62f0c911a2b326c

Fixed Flake8 errors

committed 7 years ago
Unverified
c48af758473a70f74c7cc42b63c7fde956ce1788

Added CONTRIBUTING.md

committed 7 years ago

README

The README file for this repository.

VCS Rosetta

A handy tool to help devs transition between version control systems.

Prints out the equivalent command in the other VCS.

Installation

pip install --user vcsrosetta

Usage

g2h (git to hg)

$ g2h checkout

git checkout:
=============
Translates as:
    git checkout [file]                                       => hg revert [file]
    git checkout HEAD                                         => hg update tip
    git checkout `git rev-list -n 1 --before="[date]" master` => hg update --date [date]
    git checkout -f                                           => hg update -C
    git checkout [branch]                                     => hg update [branch]

h2g (hg to git)

$ h2g update

hg update:
==========
Translates as:
    hg update --date=[date] => git checkout `git rev-list -n 1 --before="[date]" master`