Thursday, February 13, 2014

Create a local branch in TortoiseHg

You may have noticed the "Phase" column in TortoiseHg. A value of "draft" suggests a local commit while a value of "public" suggests a commit that exists in greater source control beyond mere local scope.

 
 

If you right-click on the "draft" designation for a detached head (and pick "Change Phase to" from the menu which appears) and set it to "secret" instead...

 
 

...you will create a local branch.

Don't update to the detached head or pull down from source control into it. If you do not, the detached head will otherwise be ignored and TortoiseHg will not complain when you try to make future commits with the detached head in existence. Turn "secret" back into "draft" to merge the local branch back in later.

No comments:

Post a Comment