hg-git tutorial? [was Re: Bookmarks with hg update question]
Arne Babenhauserheide
arne_bab at web.de
Tue Jul 12 21:19:11 UTC 2016
Bryan Murdock writes:
> Here are some aliases I just put together to convert revisions both ways:
>
> # for hg-git:
> hg2git = log -r $1 --template '{gitnode|short}'
> git2hg = log -r 'gitnode($1)' --template='{rev}:{node|short}\n'
>
> Use them like:
>
> hg hg2git <mercurial revision>
>
> hg git2hg <git hash>
Nice! Thank you!
Best wishes,
Arne
--
Unpolitisch sein
heißt politisch sein
ohne es zu merken
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20160712/3ece354c/attachment.asc>
More information about the Mercurial
mailing list