What is a branch?

Douglas Philips dgou at mac.com
Sun Feb 10 09:25:17 CST 2008


On 2008 Feb 10, at 9:07 AM, Adrian Buehlmann indited:
> by introducing the term "diverging development line", which I found  
> on TutorialMerge.

I like that phrase.

Since I'm not a mercurial expert, I wasn't going to edit the page  
directly, but this section gave me pause:

	Mercurial supports giving names to branches, by using the branch  
name property of the changeset (see NamedBranches). If no branch name  
is specified when committing a new changeset, Mercurial assigns the  
branch name "default". So the name of the default branch in a  
repository is "default" (which, for example, is not displayed when  
doing a hg log).


When I read the NamedBranches page, it implies that naming a branch  
makes the name 'sticky', but the text above implies that if I do a  
"branch foo; <commit-1>; <commit-2>" then <commit-1> will be on the  
foo branch, but <commit-2> will be on the default branch.

Otherwise, I really like the new page! Thanks!

		--Doug




More information about the Mercurial mailing list