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

Robert Bauck Hamar r.b.hamar at usit.uio.no
Mon Jul 13 03:20:21 CDT 2009


*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.

All extensions are located here: 
http://mercurial.selenic.com/wiki/UsingExtensions

-- 
Robert Bauck Hamar
USIT/SAPP/GT - Cerebrum
http://www.uio.no/sok?person=hamar
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://selenic.com/pipermail/mercurial/attachments/20090713/ded5b25b/attachment.pgp 


More information about the Mercurial mailing list