git workflow possible with mercurial ... what are the commands ?

Mads Kiilerich mads at kiilerich.com
Mon Jul 13 06:01:04 CDT 2009


On 07/13/2009 10:20 AM, Robert Bauck Hamar wrote:
> *rupert.thurner:
>> i am pretty sure that the git workflow is possible with mercurial, but
>> i am unsure what the best mercurial commands are to reach
>> approximately the same behaviour. see 
>> http://www.kernel.org/pub/software/scm/git/docs/gitworkflows.html.
>
> Let's try
>
> git blame = hg blame/annotate
> git bisect = hg bisect
> git rebase --interactive = Histedit extension
> git stash = Attic extension
> git merge = hg merge
> git cherry-pick = Transplant extension
> git rebase = Rebase extension
> git push = hg push
> git pull = fetch extension
> git fetch = hg pull
> git format-patch git send-email = Patchbomb extension
> git am = Mbox extension ? Or just hg import patches manually (as 
> previously mentioned on this list: Some email clients support piping 
> mail text into programs. Both mutt and gnus use the | command.)
>
> Note also that git branches and hg branches are different concepts. 
> Git branches are more like Bookmarks extension, while branches in hg 
> traditionally have been tracked with the use of different repositories.

Please merge that with the list on 
http://mercurial.selenic.com/wiki/GitConcepts#Command_equivalence_table 
and use this discussion to improve that page.

/Mads


More information about the Mercurial mailing list