bookmark "master" should be created on hg cloning a git repository
Created originally on Bitbucket by ldufrechou (Laurent Dufrechou)
I had several issues using tortoiseHg with git because my users are not always doing the 3rd step when cloning a git repos:
hg clone git:github.com/schacon/munger.git
cd hg-git # (a Mercurial repository)
hg bookmark -r default master ->make a bookmark of master for default, so a ref gets created
Usually it means that when cloning a git repos, user must open thg, delete master bookmark and recreate it.Once it is done the master bookmark which was yellow written in blue become orange written in black. And Git push work perfectly.
The issue is explained here: https://github.com/schacon/hg-git/issues/189
This is happening because hg-git is not "activating" the bookmark on clone. That is, it should automatically make the master bookmark the current bookmark when you clone, which will then cause it to move with tip as you commit. Without doing this, the bookmark stays where it is. (This is new behavior; previous versions of Mercurial moved bookmarks regardless of which one was "current" -- see the track.current hgrc setting.)
Is it posible for hg-git to automatise such a thing once a git clone is asked?
I reported this bug to tortoiseHg, and they asked me to see if you thought it was Ok for you to put this in hg-git. If not, I will patch TortoiseHG.
Regards, Laurent