branches, bookmarks, new heads
Sean Farley
sean at farley.io
Fri Dec 30 20:22:15 UTC 2016
Uwe Brauer <oub at mat.ucm.es> writes:
> Hi
>
> The following
>
> hg init
> echo feature > new.el
> hg add new.el
> hg commit -m feature1
> hg branch feature
> echo feature >> new.el
> hg commit -m feature
>
> Generates a new head, while
>
>
> hg init
> echo feature > new.el
> hg add new.el
> hg commit -m feature1
> hg bookmark feature
> echo feature >> new.el
> hg commit -m feature
>
> Does not.
>
> When using a bookmark could a head optionally be created?
This is a rather deep issue with design and philosophy inside Mercurial.
Currently, bookmarks point to commits. That's about it.
Personally, I think bookmarks-as-a-feature-branch should move inside
hg-git and core Mercurial should stick to one-branch-per-commit.
More information about the Mercurial
mailing list